Cache::Null - Null implementation of the Cache interface
use Cache::Null; my $cache = Cache::Null->new();
See Cache for the usage synopsis.
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.
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.
See 'Cache' for the API documentation.
Cache
Chris Leishman <chris@leishman.org> Based on work by DeWitt Clinton <dewitt@unto.net>
Copyright (C) 2003 Chris Leishman. All Rights Reserved.
This module is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either expressed or implied. This program is free software; you can redistribute or modify it under the same terms as Perl itself.
$Id: Null.pm,v 1.1.1.1 2003/06/05 21:46:09 caleishm Exp $
To install Cache, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Cache
CPAN shell
perl -MCPAN -e shell install Cache
For more information on module installation, please visit the detailed CPAN module installation guide.