line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
##################################################################### |
2
|
|
|
|
|
|
|
# $Id: Cache.pm,v 1.43 2005/07/13 22:29:33 dclinton Exp $ |
3
|
|
|
|
|
|
|
# Copyright (C) 2001-2003 DeWitt Clinton All Rights Reserved |
4
|
|
|
|
|
|
|
# |
5
|
|
|
|
|
|
|
# Software distributed under the License is distributed on an "AS |
6
|
|
|
|
|
|
|
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either expressed or |
7
|
|
|
|
|
|
|
# implied. See the License for the specific language governing |
8
|
|
|
|
|
|
|
# rights and limitations under the License. |
9
|
|
|
|
|
|
|
###################################################################### |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
package Cache::Cache; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
|
15
|
5
|
|
|
5
|
|
3153
|
use strict; |
|
5
|
|
|
|
|
6
|
|
|
5
|
|
|
|
|
183
|
|
16
|
5
|
|
|
5
|
|
20
|
use vars qw( @ISA @EXPORT_OK $VERSION $EXPIRES_NOW $EXPIRES_NEVER ); |
|
5
|
|
|
|
|
5
|
|
|
5
|
|
|
|
|
379
|
|
17
|
5
|
|
|
5
|
|
22
|
use Exporter; |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
792
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
@ISA = qw( Exporter ); |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
@EXPORT_OK = qw( $VERSION $EXPIRES_NOW $EXPIRES_NEVER ); |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
$VERSION = "1.08"; |
24
|
|
|
|
|
|
|
$EXPIRES_NOW = 'now'; |
25
|
|
|
|
|
|
|
$EXPIRES_NEVER = 'never'; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub Clear; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub Purge; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub Size; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub new; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub clear; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
sub get; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub get_object; |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
sub purge; |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
sub remove; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
sub set; |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
sub set_object; |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
sub size; |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
sub get_default_expires_in; |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
sub get_namespace; |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
sub set_namespace; |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
sub get_keys; |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
sub get_auto_purge_interval; |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
sub set_auto_purge_interval; |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
sub get_auto_purge_on_set; |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
sub set_auto_purge_on_set; |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
sub get_namespaces; |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
sub get_identifiers; # deprecated |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
1; |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
__END__ |