1Cache::SizeAwareFileCacUhsee(r3)Contributed Perl DocumenCtaacthieo:n:SizeAwareFileCache(3)
2
3
4
6 Cache::SizeAwareFileCache -- extends Cache::FileCache
7
9 The SizeAwareFileCache class adds the ability to dynamically limit the
10 size (in bytes) of a file system based cache. This class also
11 implements the SizeAwareCache interface, providing the 'max_size'
12 option and the 'limit_size( $size )' method.
13
15 use Cache::SizeAwareFileCache;
16
17 my $cache =
18 new Cache::SizeAwareFileCache( { 'namespace' => 'MyNamespace',
19 'default_expires_in' => 600,
20 'max_size' => 10000 } );
21
23 See Cache::Cache and Cache::SizeAwareCache for the API documentation.
24
26 See Cache::Cache and Cache::SizeAwareCache for the standard options.
27
29 See Cache::Cache and Cache::SizeAwareCache for the default properties.
30
32 Cache::Cache, Cache::SizeAwareCache, Cache::FileCache
33
35 Original author: DeWitt Clinton <dewitt@unto.net>
36
37 Also: Portions of this code are a rewrite of David Coppit's excellent
38 extensions to the original File::Cache
39
40 Last author: $Author: dclinton $
41
42 Copyright (C) 2001-2003 DeWitt Clinton
43
44
45
46perl v5.30.1 2020-01-29 Cache::SizeAwareFileCache(3)