Cache::BerkeleyDB Perl module implements the Cache::Cache interface.
This module implements the Cache interface provided by the Cache::Cache family of modules written by DeWitt Clinton. It provides a practically drop-in replacement for Cache::FileCache.
As should be obvious from the name, the backend is based on BerkeleyDB.
SYNOPSIS
use Cache::BerkeleyDB;
my $cache = new Cache::BerkeleyDB( { 'namespace' => 'MyNamespace',
'default_expires_in' => 600 } );
See Cache::Cache for the usage synopsis.
METHODS
See Cache::Cache for the API documentation. Only changes relative to the standard methods are mentioned below.
Clear( [$cache_root] )
See Cache::Cache, with the optional $cache_root parameter.
Purge( [$cache_root] )
See Cache::Cache, with the optional $cache_root parameter.
Size( [$cache_root] )
See Cache::Cache, with the optional $cache_root parameter.
OPTIONS
See Cache::Cache for standard options. Additionally, options are set by passing in a reference to a hash containing any of the following keys:
cache_root
The location in the filesystem that will hold the BDB files representing the cache namespaces. Defaults to /tmp unless explicitly set.
umask
The umask which will be active when any cache files are created. Defaults to 002. Note that this will have no effect on existing files.
Product's homepage
Requirements:
· Perl