SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG
DONATE


YUM REPOSITORY

 
 

MAN page from OpenSuSE perl-Cache-Cache-1.08-lp151.2.2.noarch.rpm

Cache::CacheSizer

Section: User Contributed Perl Documentation (3)
Updated: 2015-04-17
Index 

NAME

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

DESCRIPTION

The CacheSizer class is used internally in SizeAware caches such asSizeAwareFileCache to encapsulate the logic of limiting cache size. 

SYNOPSIS

  use Cache::CacheSizer;  my $sizer = new Cache::CacheSizer( $cache, $max_size );  $sizer->limit_size( $new_size );
 

METHODS

new( $cache, $max_size )
Construct a new Cache::CacheSizer object for the cache $cache witha maximum size of $max_size.
update_access_time( $key )
Inform the cache that the object specified by $key has been accessed.
limit_size( $new_size )
Use the sizing algorithms to get the cache down under $new_size ifpossible.
 

PROPERTIES

get_max_size
The desired size limit for the cache under control.
 

SEE ALSO

Cache::Cache, Cache::CacheMetaData, Cache::SizeAwareCache 

AUTHOR

Original author: DeWitt Clinton <dewittAATTunto.net>

Last author: $Author: dclinton $

Copyright (C) 2001-2003 DeWitt Clinton


 

Index

NAME
DESCRIPTION
SYNOPSIS
METHODS
PROPERTIES
SEE ALSO
AUTHOR

This document was created byman2html,using the manual pages.