![]() |
![]()
| ![]() |
![]()
NAMECache::CacheMetaData -- data about objects in the cache DESCRIPTIONThe CacheMetaData object is used by size aware caches to keep track of the state of the cache and efficiently return information such as an objects size or an ordered list of identifiers to be removed when a cache size is being limited. End users will not normally use CacheMetaData directly. SYNOPSISuse Cache::CacheMetaData; my $cache_meta_data = new Cache::CacheMetaData( ); foreach my $key ( $cache->get_keys( ) ) { my $object = $cache->get_object( $key ) or next; $cache_meta_data->insert( $object ); } my $current_size = $cache_meta_data->get_cache_size( ); my @removal_list = $cache_meta_data->build_removal_list( ); METHODS
PROPERTIES
SEE ALSOCache::Cache, Cache::CacheSizer, Cache::SizeAwareCache AUTHOROriginal author: DeWitt Clinton <dewitt@unto.net> Last author: $Author: dclinton $ Copyright (C) 2001-2003 DeWitt Clinton
|