Cache::FileBackend(3pm) | User Contributed Perl Documentation | Cache::FileBackend(3pm) |
Cache::FileBackend -- a filesystem based persistence mechanism
The FileBackend class is used to persist data to the filesystem
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 ); }
See Cache::Backend for the API documentation.
Cache::Backend, Cache::MemoryBackend, Cache::SharedMemoryBackend
Original author: DeWitt Clinton <dewitt@unto.net>
Last author: $Author: dclinton $
Copyright (C) 2001-2003 DeWitt Clinton
2022-06-30 | perl v5.34.0 |