Cache::Null(3pm)

Cache::Null3pm

Null implementation of the cache interface

Usage

  use Cache::Null;
  my $cache = Cache::Null->new();

See Cache for the usage synopsis.

Overview

The Cache::Null class implements the Cache interface, but does not actually persist data. This is useful when developing and debugging a system and you wish to easily turn off caching. As a result, all calls return results indicating that there is no data stored.

Constructor

  my $cache = Cache::Null->new( %options )

The constructor takes cache properties as named arguments, for example:

  my $cache = Cache::Null->new( default_expires => '600 sec' );

See 'PROPERTIES' below and in the Cache documentation for a list of all available properties that can be set. However it should be noted that all the existing properties, such as default_expires, have no effect in a Null cache.

Methods

See 'Cache' for the API documentation.

Releases

10 releases since Debian 4.0 (Etch); the text changed 6 times.

  1. 4.0
  2. 5.0–6.0
  3. 7
  4. 8
  5. 9–10
  6. 11
  7. 12–13

Author

 Chris Leishman <[email protected]>
 Based on work by DeWitt Clinton <[email protected]>

From libcache-perl 2.11-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.