|
NAMECache::AgainstFile::CacheModule - use Cache or Cache::Cache modules for Cache::AgainstFile SYNOPSIS use Cache::AgainstFile;
my $cache = new Cache::AgainstFile(
\&loader,
{
Method => 'CacheModule',
CacheModule => 'Cache::MemoryCache', #This will be loaded on demand
CacheModuleOptions => {'default_expires_in' => 300},
# ...
}
);
$data = $cache->get($filename);
DESCRIPTIONThis backend allows you to apply Cache::AgainstFile to any of the modules on CPAN that conform to the Cache::Cache or Cache interfaces. Data structures are automatically serialised into the cache. OPTIONS
VERSION$Revision: 1.9 $ on $Date: 2005/10/31 21:10:41 $ by $Author: johna $ AUTHORJohn Alden <cpan _at_ bbc _dot_ co _dot_ uk> COPYRIGHT(c) BBC 2005. This program is free software; you can redistribute it and/or modify it under the GNU GPL. See the file COPYING in this distribution, or http://www.gnu.org/licenses/gpl.txt
|