Cache:...yCache(3pm)
π Cache:...yCache(3pm) β aka Cache::MemoryCache π
okay bestie, welcome to your User Contributed Perl Documentation moment, this is the Cache:...yCache(3pm) page and it is literally about Cache::MemoryCache, let's get into it β¨
πΈ NAME πΈ
Cache::MemoryCache</purgle> β it implements the Cache interface. that's it, that's the whole job π
π¦ DESCRIPTION π¦
so MemoryCache is a class that implements the Cache interface, and the way it does that is by storing your data per-process. like, on a per-process basis, no sharing, no crossover, just you and your process π«Ά
it's the fastest of the cache implementations β iconic, we love a speed queen π
but here's the tradeoff and you need to hear this: data can not be shared between processes with the MemoryCache. nope. not happening. each process keeps its own lil stash π
the good news tho? the data will remain in the cache until it gets cleared, until it expires, or until the process dies. so it sticks around π
β οΈ and a very important vibe check: the cache object simply going out of scope will not destroy the data. like, don't assume it's gone just because the variable left the chat. it's still there. lowkey haunting you π
β¨ SYNOPSIS β¨
use Cache::MemoryCache;
my $cache = new Cache::MemoryCache( { 'namespace' => 'MyNamespace',
'default_expires_in' => 600 } );
See Cache::Cache for the usage synopsis.
yes that's the whole thing, it's giving minimal and confident π (and fr, go look at Cache::Cache for the usage synopsis, it's the main character of the usage dept)
π METHODS π
see Cache::Cache for the API documentation. we're not repeating it here, the API docs live there, go visit them π§
π OPTIONS π
see Cache::Cache for the standard options. all the standard ones, over there, at Cache::Cache β
π PROPERTIES π
see Cache::Cache for the default properties. same deal bestie, defaults are documented at Cache::Cache π
π₯ SEE ALSO π₯
Cache::Cache
π AUTHOR π
- Original author: DeWitt Clinton
<dewitt@unto.net> - Last author:
$Author: dclinton $ - Copyright (C) 2001-2003 DeWitt Clinton
and that's a wrap on the Cache:...yCache(3pm) page, brought to you by perl v5.34.0, dated 2022-06-30 β no cap, that's the version and the date, love that for us, slay, periodt π
πΈβ¨
π¦ where this page comes from
- debian bookworm: libcache-cache-perl 1.08-3 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- debian trixie: libcache-cache-perl 1.08-3 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- ubuntu noble: libcache-cache-perl 1.08-3 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- ubuntu resolute: libcache-cache-perl 1.08-3 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- ubuntu stonking: libcache-cache-perl 1.08-3 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms