|
NAMECache::AgainstFile::Memory - cache data parsed from files in memorySYNOPSISuse Cache::AgainstFile; my $cache = new Cache::AgainstFile( \&loader, { Method => 'Memory', MaxItems => 16, # ... } ); $data = $cache->get($filename); DESCRIPTIONData structures parsed from files are cached in memory. This is particularly suited to persistent environments such as modperl or other daemon processes.For short-lived processes such as CGI scripts, the Storable backend might be more appropriate. Note that the "size()" method uses Devel::Size if available, otherwise it returns undef. Devel::Size can consume a reasonable amount of memory working out how much memory you are using! This memory is released after the operation but it will have expanded your process' memory footprint in the process. OPTIONS
VERSION$Revision: 1.15 $ on $Date: 2005/11/10 15:13:57 $ by $Author: johna $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. |