Autocache::Store - Cached data storage base class.
This is a base class for objects that provide storage for Autocache record objects.
All the methods defined in this class are no-ops that conform to the below documentation.
See also Autocache::Record.
The following methods should be overridden by concrete implementations.
Most sub-classes will over-ride all of them.
If a sub-class does over-ride a particular method it must adhere to the behaviour described below.
In all cases $key is a string that uniquely identifies the cache record and $record is an instance of Autocache::Record.
$key
$record
get
$record = $store->get( $key );
Find a record identifed by the supplied key and return it, or undef if the store does not contain a record related to the supplied key.
set
$record = $store->set( $key, $record );
Store the record under the supplied key and return the record.
delete
$record = $store->delete( $key );
Find a record identifed by the supplied key, delete it from the store and return it, or undef.
clear
$store->clear();
Clear all records from this store.
This module is Copyright (c) 2010 Nigel Rantor. England. All rights reserved.
You may distribute under the terms of either the GNU General Public License or the Artistic License, as specified in the Perl README file.
This module is free software. IT COMES WITHOUT WARRANTY OF ANY KIND.
Nigel A Rantor - <wiggly@wiggly.org>
Rajit B Singh - <rajit.b.singh@gmail.com>
To install Autocache, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Autocache
CPAN shell
perl -MCPAN -e shell install Autocache
For more information on module installation, please visit the detailed CPAN module installation guide.