NAME

Autocache::Store - Cached data storage base class.

DESCRIPTION

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.

METHODS

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.

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.

LICENSE

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.

SUPPORT / WARRANTY

This module is free software. IT COMES WITHOUT WARRANTY OF ANY KIND.

AUTHORS

Nigel A Rantor - <wiggly@wiggly.org>

Rajit B Singh - <rajit.b.singh@gmail.com>