Cache::YAMLBackend -- a filesystem based YAML persistance mechanism
The YAMLBackend class is used to persist data to the filesystem as YAML, based on Cache::FileBackend.
my $backend = new Cache::YAMLBackend( '/tmp/FileCache', 3, 000 ); See Cache::FileBackend 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 ); }
See Cache::FileBackend for the API documentation.
Cache::Backend, Cache::FileBackend
Original author: Michael Nachbaur <mike@nachbaur.com>
Last author: $Author: nachbaur $
Copyright (C) 2005 Michael Nachbaur
To install Cache::YAMLCache, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Cache::YAMLCache
CPAN shell
perl -MCPAN -e shell install Cache::YAMLCache
For more information on module installation, please visit the detailed CPAN module installation guide.