Cache::SizeAwareSharedMemoryCache -- extends the Cache::SizeAwareMemoryCache module
The SizeAwareSharedMemoryCache extends the SizeAwareMemoryCache class and binds the data store to shared memory so that separate process can use the same cache.
use Cache::SizeAwareSharedMemoryCache; my %cache_options = ( 'namespace' => 'MyNamespace', 'default_expires_in' => 600, 'max_size' => 10000 ); my $size_aware_shared_memory_cache = new Cache::SizeAwareSharedMemoryCache( \%cache_options ) or croak( "Couldn't instantiate SizeAwareSharedMemoryCache" );
See Cache::Cache
Constructs a new SizeAwareMemoryCache
A reference to a hash containing configuration options for the cache. See the section OPTIONS below.
See Cache::SizeAwareMemoryCache
See Cache::Cache for standard options. See Cache::SizeAwareMemory cache for other options.
See Cache::Cache and Cache::SizeAwareMemoryCache for default properties.
Cache::Cache, Cache::MemoryCache, Cache::SizeAwareMemoryCache
Original author: DeWitt Clinton <dewitt@unto.net>
Last author: $Author: dclinton $
Copyright (C) 2001 DeWitt Clinton
To install Cache::Cache, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Cache::Cache
CPAN shell
perl -MCPAN -e shell install Cache::Cache
For more information on module installation, please visit the detailed CPAN module installation guide.