Cache::Backend(3pm)

Cache::Backend3pm

Overview

Classes that implement the Backend interface can be used in conjuction with the BaseCache class to create cache classes. It is important that classes that implement Backend do not presume that they are storing any particular type of data, or even that they are being used by a class that implements the Cache interface.

Methods

new( )

Construct a new instance of the backend

delete_key( $namespace, $key )

Remove the data associated with $key from the $namespace.

delete_namespace( $namespace )

Remove data associated with all keys in the $namespace.

get_keys( $namespace )

Return a list of all keys pointing to data in the $namespace.

get_namespaces( )

Return a list of all namespaces this backend knows about.

get_size( $namespace, $key )

Return the size (in bytes) of the data associated with $key in the $namespace.

restore( $namespace, $key )

Return the data associated with $key in the $namespace.

store( $namespace, $key, $data )

Associate the $data with the $key in the $namespace.

Author

Original author: DeWitt Clinton <[email protected]>

Last author: $Author: dclinton $

Copyright (C) 2001 DeWitt Clinton

From libcache-cache-perl 1.0-1 in Debian 3.0 (Woody). Parsed by carta from the page's man source.