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::SizeAwareCache

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

NAME

Cache::SizeAwareCache -- extends the Cache interface. 

DESCRIPTION

The SizeAwareCache interface is implemented by classes that supportall of the Cache::Cache interface in addition to the limit_size andmax_size features of a size aware cache.

The default cache size limiting algorithm works by removing cacheobjects in the following order until the desired limit is reached:

  1) objects that have expired  2) objects that are least recently accessed  3) objects that expire next
 

SYNOPSIS

  use Cache::SizeAwareCache;  use vars qw( @ISA );  @ISA = qw( Cache::SizeAwareCache );
 

CONSTANTS

Please see Cache::Cache for standard constants
$NO_MAX_SIZE
The cache has no size restrictions
 

METHODS

Please see Cache::Cache for the standard methods
limit_size( $new_size )
Attempt to resize the cache such that the total disk usage is underthe $new_size parameter. $new_size represents t size (in bytes)that the cache should be limited to. Note that this is only a onetime adjustment. To maintain the cache size, consider using themax_size option, although it is considered very expensive, and canoften be better achieved by periodically calling limit_size.
 

OPTIONS

Please see Cache::Cache for the standard options
max_size
Sets the max_size property (size in bytes), which is described indetail below. Defaults to $NO_MAX_SIZE.
 

PROPERTIES

Please see Cache::Cache for standard properties
(get|set)_max_size
If this property is set, then the cache will try not to exceed the maxsize value (in bytes) specified. NOTE: This causes the size of thecache to be checked on every set, and can be considered *very*expensive in some implementations. A good alternative approach isleave max_size as $NO_MAX_SIZE and to periodically limit the size ofthe cache by calling the limit_size( $size ) method.
 

SEE ALSO

Cache::Cache 

AUTHOR

Original author: DeWitt Clinton <dewittAATTunto.net>

Last author: $Author: dclinton $

Copyright (C) 2001-2003 DeWitt Clinton


 

Index

NAME
DESCRIPTION
SYNOPSIS
CONSTANTS
METHODS
OPTIONS
PROPERTIES
SEE ALSO
AUTHOR

This document was created byman2html,using the manual pages.