Cache:...ryCache(3pm)

πŸ’– NAME πŸ’–

Cache::SizeAwareSharedMemoryCache β€” bestie, it extends Cache::SizeAwareMemoryCache ✨


🌸 DESCRIPTION 🌸

okay so. The SizeAwareSharedMemoryCache class adds the ability to dynamically limit the size (in bytes) of a shared memory based cache. yes, dynamically, she's flexible like that πŸ’…

This class also implements the SizeAwareCache interface, which is where it gets the 'max_size' option and the 'limit_size( $size )' method. no cap, that's the whole vibe πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

use Cache::SizeAwareSharedMemoryCache;

my $cache =
  new Cache::SizeAwareSharedMemoryCache( { 'namespace' => 'MyNamespace',
                                           'default_expires_in' => 600,
                                           'max_size' => 10000 } );

look at her go 😭 iconic behavior fr fr


πŸ‘‘ METHODS πŸ‘‘

See Cache::Cache and Cache::SizeAwareCache for the API documentation. iykyk, the docs live over there 🫢


✨ OPTIONS ✨

See Cache::Cache and Cache::SizeAwareCache for the standard options. all the classics are in those two, go check 'em πŸ’œ


🌈 PROPERTIES 🌈

See Cache::Cache and Cache::SizeAwareCache for the default properties. same deal, bestie πŸ’–


πŸ”₯ SEE ALSO πŸ”₯

  • Cache::Cache
  • Cache::SizeAwareCache
  • Cache::SharedMemoryCache

the whole friend group πŸ₯°


πŸ’« AUTHOR πŸ’«

  • Original author: DeWitt Clinton <dewitt@unto.net>
  • Last author: $Author: dclinton $
  • Copyright (C) 2001-2003 DeWitt Clinton

and that's a wrap, bestie πŸŽ€ this page came to you courtesy of the Cache:...ryCache(3pm) manual, perl v5.34.0, dated 2022-06-30 ✨ mwah, go forth and cache responsibly πŸ’…

πŸ“¦ where this page comes from