NAME
Cache::MemoryCache -- implements the Cache interface.
DESCRIPTION
The MemoryCache class implements the Cache interface. This cache stores data on a per-process basis. This is the fastest of the cache implementations, but data can not be shared between processes with the MemoryCache.
SYNOPSIS
use Cache::MemoryCache;
my %cache_options_= ( 'namespace' => 'MyNamespace',
'default_expires_in' => 600 );
my $memory_cache = new Cache::MemoryCache( \%cache_options ) or
croak( "Couldn't instantiate MemoryCache" );
METHODS
- Clear( )
-
See Cache::Cache
- Purge( )
-
See Cache::Cache
- Size( )
-
See Cache::Cache
- new( $options_hash_ref )
-
Constructs a new MemoryCache.
$options_hash_ref
-
A reference to a hash containing configuration options for the cache. See the section OPTIONS below.
- clear( )
-
See Cache::Cache
- get( $identifier )
-
See Cache::Cache
- get_object( $identifier )
-
See Cache::Cache
- purge( )
-
See Cache::Cache
- remove( $identifier )
-
See Cache::Cache
- set( $identifier, $data, $expires_in )
-
See Cache::Cache
- size( )
-
See Cache::Cache
OPTIONS
See Cache::Cache for standard options.
PROPERTIES
See Cache::Cache for default properties.
SEE ALSO
Cache::Cache
AUTHOR
Original author: DeWitt Clinton <dewitt@unto.net>
Last author: $Author: dclinton $
Copyright (C) 2001 DeWitt Clinton