Query: arch::sharedcache
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Arch::SharedCache(3pm) User Contributed Perl Documentation Arch::SharedCache(3pm)NAMEArch::SharedCache - a synchronized data structure (map) for IPCSYNOPSISuse Arch::SharedCache; my $cache = Arch::SharedCache->new( dir => '/tmp/dir-listings', max_size => 100, expiration => 600, # 10 minutes ); sub ls_long { scalar `ls -l $_[0]` } my $user_dir = '/usr/share'; $cache->store($user_dir => ls_long($user_dir)); $cache->fetch_store(sub { ls_long($_[0]) }, qw(/tmp /bin /usr/share)); printf "Cached listing of $user_dir: %s", $cache->fetch($user_dir); $cache->delete($user_dir); # examine /tmp/dir-listings/ after running this script # see also synopsys of Arch::SharedIndexDESCRIPTIONArch::SharedCache provides an Arch::SharedIndex implementation using a single file per value.METHODSThe following methods are available: new. Other methods are documented in Arch::SharedIndex. new options Create a new Arch::SharedCache object. options is a hash of options. dir The cache directory used to store data. Will be created if it doesn't exist. index_file Name of the index file for the cache. Defaults to "dir/.index".BUGSAwaiting for your reports.AUTHORSMikhael Goikhman (migo@homemail.com--Perl-GPL/arch-perl--devel). Enno Cramer (uebergeek@web.de--2003/arch-perl--devel).SEE ALSOFor more information, see Arch::SharedIndex. perl v5.10.1 2005-09-17 Arch::SharedCache(3pm)
Related Man Pages |
---|
arch::inventory(3pm) - debian |
arch::library(3pm) - debian |
arch::tempfiles(3pm) - debian |
arch::test::framework(3pm) - debian |
arch::test::tree(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
Ultra 5 Arch (URGENT) |
need help listing/sorting files |
if i give this command what would be the value... |
Pacman not functioning in Arch |
Bash - Extracting whole word containing substring |