Author image Nigel A Rantor
and 2 contributors


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.


    $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.


    $record = $store->set( $key, $record );

Store the record under the supplied key and return the record.


    $record = $store->delete( $key );

Find a record identifed by the supplied key, delete it from the store and return it, or undef.



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 - <>

Rajit B Singh - <>