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