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

NAME

6       Cache::CacheSizer -- component object for managing the size of caches
7

DESCRIPTION

9       The CacheSizer class is used internally in SizeAware caches such as
10       SizeAwareFileCache to encapsulate the logic of limiting cache size.
11

SYNOPSIS

13         use Cache::CacheSizer;
14
15         my $sizer = new Cache::CacheSizer( $cache, $max_size );
16
17         $sizer->limit_size( $new_size );
18

METHODS

20       new( $cache, $max_size )
21           Construct a new Cache::CacheSizer object for the cache $cache with
22           a maximum size of $max_size.
23
24       update_access_time( $key )
25           Inform the cache that the object specified by $key has been
26           accessed.
27
28       limit_size( $new_size )
29           Use the sizing algorithms to get the cache down under $new_size if
30           possible.
31

PROPERTIES

33       get_max_size
34           The desired size limit for the cache under control.
35

SEE ALSO

37       Cache::Cache, Cache::CacheMetaData, Cache::SizeAwareCache
38

AUTHOR

40       Original author: DeWitt Clinton <dewitt@unto.net>
41
42       Last author:     $Author: dclinton $
43
44       Copyright (C) 2001-2003 DeWitt Clinton
45
46
47
48perl v5.32.0                      2020-07-28              Cache::CacheSizer(3)
Impressum