/usr/share/perl5/Cache/NullCache.pm is in libcache-cache-perl 1.07-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 | ######################################################################
# $Id: NullCache.pm,v 1.7 2002/07/18 06:15:18 dclinton Exp $
# Copyright (C) 2001 Jay Sachs, 2002 DeWitt Clinton All Rights Reserved
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either expressed or
# implied. See the License for the specific language governing
# rights and limitations under the License.
######################################################################
package Cache::NullCache;
use strict;
use vars qw( @ISA );
use Cache::BaseCache;
use Cache::Cache qw( $EXPIRES_NOW );
@ISA = qw ( Cache::BaseCache );
sub Clear
{
}
sub Purge
{
}
sub Size
{
return 0;
}
sub new
{
my ( $proto ) = @_;
return bless( {}, ref( $proto ) || $proto );
}
sub clear
{
}
sub get
{
return undef;
}
sub get_object
{
return undef;
}
sub purge
{
}
sub remove
{
}
sub set
{
}
sub set_object
{
}
sub size
{
return 0;
}
sub get_default_expires_in
{
return $EXPIRES_NOW;
}
sub get_keys
{
return ( );
}
sub get_identifiers
{
warn( "get_identifiers has been marked deprepricated. use get_keys" );
return ( );
}
sub get_auto_purge_interval
{
return 0;
}
sub set_auto_purge_interval
{
}
sub get_auto_purge_on_set
{
return 0;
}
sub set_auto_purge_on_set
{
}
sub get_auto_purge_on_get
{
return 0;
}
sub set_auto_purge_on_get
{
}
__END__
=pod
=head1 NAME
Cache::NullCache -- implements the Cache interface.
=head1 DESCRIPTION
The NullCache class implements the Cache::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 to get and get_object will return undef.
=head1 SYNOPSIS
use Cache::NullCache;
my $cache = new Cache::NullCache( );
See Cache::Cache for the usage synopsis.
=head1 METHODS
See Cache::Cache for the API documentation.
=head1 OPTIONS
See Cache::Cache for standard options.
=head1 PROPERTIES
See Cache::Cache for default properties.
=head1 SEE ALSO
Cache::Cache
=head1 AUTHOR
Original author: Jay Sachs
Last author: $Author: dclinton $
Copyright (C) 2001 Jay Sachs, 2002 DeWitt Clinton
=cut
|