Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cache::filebackend(3pm) [debian man page]

Cache::FileBackend(3pm) 				User Contributed Perl Documentation				   Cache::FileBackend(3pm)

NAME
Cache::FileBackend -- a filesystem based persistance mechanism DESCRIPTION
The FileBackend class is used to persist data to the filesystem SYNOPSIS
my $backend = new Cache::FileBackend( '/tmp/FileCache', 3, 000 ); See Cache::Backend for the usage synopsis. $backend->store( 'namespace', 'foo', 'bar' ); my $bar = $backend->restore( 'namespace', 'foo' ); my $size_of_bar = $backend->get_size( 'namespace', 'foo' ); foreach my $key ( $backend->get_keys( 'namespace' ) ) { $backend->delete_key( 'namespace', $key ); } foreach my $namespace ( $backend->get_namespaces( ) ) { $backend->delete_namespace( $namespace ); } METHODS
See Cache::Backend for the API documentation. new( $root, $depth, $directory_umask ) Construct a new FileBackend that writes data to the $root directory, automatically creates subdirectories $depth levels deep, and uses the umask of $directory_umask when creating directories. PROPERTIES
(get|set)_root The location of the parent directory in which to store the files (get|set)_depth The branching factor of the subdirectories created to store the files (get|set)_directory_umask The umask to be used when creating directories SEE ALSO
Cache::Backend, Cache::MemoryBackend, Cache::SharedMemoryBackend AUTHOR
Original author: DeWitt Clinton <dewitt@unto.net> Last author: $Author: dclinton $ Copyright (C) 2001-2003 DeWitt Clinton perl v5.12.4 2011-08-06 Cache::FileBackend(3pm)

Check Out this Related Man Page

Cache::SizeAwareFileCache(3pm)				User Contributed Perl Documentation			    Cache::SizeAwareFileCache(3pm)

NAME
Cache::SizeAwareFileCache -- extends Cache::FileCache DESCRIPTION
The SizeAwareFileCache class adds the ability to dynamically limit the size (in bytes) of a file system based cache. This class also implements the SizeAwareCache interface, providing the 'max_size' option and the 'limit_size( $size )' method. SYNOPSIS
use Cache::SizeAwareFileCache; my $cache = new Cache::SizeAwareFileCache( { 'namespace' => 'MyNamespace', 'default_expires_in' => 600, 'max_size' => 10000 } ); METHODS
See Cache::Cache and Cache::SizeAwareCache for the API documentation. OPTIONS
See Cache::Cache and Cache::SizeAwareCache for the standard options. PROPERTIES
See Cache::Cache and Cache::SizeAwareCache for the default properties. SEE ALSO
Cache::Cache, Cache::SizeAwareCache, Cache::FileCache AUTHOR
Original author: DeWitt Clinton <dewitt@unto.net> Also: Portions of this code are a rewrite of David Coppit's excellent extentions to the original File::Cache Last author: $Author: dclinton $ Copyright (C) 2001-2003 DeWitt Clinton perl v5.12.4 2009-03-01 Cache::SizeAwareFileCache(3pm)
Man Page