1Cache::Null(3)        User Contributed Perl Documentation       Cache::Null(3)
2
3
4

NAME

6       Cache::Null - Null implementation of the Cache interface
7

SYNOPSIS

9         use Cache::Null;
10
11         my $cache = Cache::Null->new();
12
13       See Cache for the usage synopsis.
14

DESCRIPTION

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

CONSTRUCTOR

22         my $cache = Cache::Null->new( %options )
23
24       The constructor takes cache properties as named arguments, for example:
25
26         my $cache = Cache::Null->new( default_expires => '600 sec' );
27
28       See 'PROPERTIES' below and in the Cache documentation for a list of all
29       available properties that can be set.  However it should be noted that
30       all the existing properties, such as default_expires, have no effect in
31       a Null cache.
32

METHODS

34       See 'Cache' for the API documentation.
35

SEE ALSO

37       Cache
38

AUTHOR

40        Chris Leishman <chris@leishman.org>
41        Based on work by DeWitt Clinton <dewitt@unto.net>
42
44        Copyright (C) 2003-2006 Chris Leishman.  All Rights Reserved.
45
46       This module is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
47       KIND, either expressed or implied. This program is free software; you
48       can redistribute or modify it under the same terms as Perl itself.
49
50       $Id: Null.pm,v 1.4 2006/01/31 15:23:58 caleishm Exp $
51
52
53
54perl v5.8.8                       2006-01-31                    Cache::Null(3)
Impressum