|
NAMECache::AgainstFile::Storable - cache data structures parsed from files in Storable filesSYNOPSISuse Cache::AgainstFile; my $cache = new Cache::AgainstFile( \&loader, { Method => 'Storable', CacheDir => '/var/tmp/cache/myapp', # ... } ); $data = $cache->get($filename); DESCRIPTIONData structures parsed from files are cached in "shadow" storable files. If parsing is significantly more expensive than file I/O (e.g. with XML files), then this will offer some benefit.This backend is suitable for non-persistent environments (e.g. CGI scripts) where you want the cache to outlive the process. For persistent environments, the Memory backend may be more suitable as it saves on file I/O. count() and size() are relatively expensive operations involving scanning the cache directory. OPTIONS
VERSION$Revision: 1.22 $ on $Date: 2006/05/09 09:02:32 $ by $Author: mattheww $AUTHORJohn Alden & Piers Kent <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
Visit the GSP FreeBSD Man Page Interface. |