GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  CACHE::CACHESIZER (3)

.ds Aq ’

NAME

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

CONTENTS

DESCRIPTION

The CacheSizer class is used internally in SizeAware caches such as SizeAwareFileCache 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

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

PROPERTIES

<B>get_max_sizeB> The desired size limit for the cache under control.

SEE ALSO

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

AUTHOR

Original author: DeWitt Clinton <dewitt@unto.net>

Last author: $Author: dclinton $

Copyright (C) 2001-2003 DeWitt Clinton

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 CACHE::CACHESIZER (3) 2015-01-22

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.