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
Cache::CacheSizer(3) User Contributed Perl Documentation Cache::CacheSizer(3)

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

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

  use Cache::CacheSizer;

  my $sizer = new Cache::CacheSizer( $cache, $max_size );

  $sizer->limit_size( $new_size );

new( $cache, $max_size )
Construct a new Cache::CacheSizer object for the cache $cache with a 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 if possible.

get_max_size
The desired size limit for the cache under control.

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

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

Last author: $Author: dclinton $

Copyright (C) 2001-2003 DeWitt Clinton

2015-01-22 perl v5.32.1

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

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