1Cache::SizeAwareMemoryCUascehre(C3o)ntributed Perl DocumCeancthaet:i:oSnizeAwareMemoryCache(3)
2
3
4
6 Cache::SizeAwareMemoryCache -- extends Cache::MemoryCache
7
9 The SizeAwareMemoryCache class adds the ability to dynamically limit
10 the size (in bytes) of a memory 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::SizeAwareMemoryCache;
16
17 my $cache =
18 new Cache::SizeAwareMemoryCache( { '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::MemoryCache
33
35 Original author: DeWitt Clinton <dewitt@unto.net>
36
37 Last author: $Author: dclinton $
38
39 Copyright (C) 2001-2003 DeWitt Clinton
40
41
42
43perl v5.36.0 2022-07-22 Cache::SizeAwareMemoryCache(3)