Cache:...heSizer(3pm)
okay so bestie, welcome to the Cache::CacheSizer(3pm) page β it's from the User Contributed Perl Documentation, and it's literally the component object that handles cache size vibes. π
β¨ NAME β¨
Cache::CacheSizer β component object for managing the size of caches. no cap, that's the whole name. π
π DESCRIPTION π
The CacheSizer class is used internally in SizeAware caches such as SizeAwareFileCache to encapsulate the logic of limiting cache size. it's giving internal helper energy, but make it size-control. π«Ά
πΈ SYNOPSIS πΈ
use Cache::CacheSizer;
my $sizer = new Cache::CacheSizer( $cache, $max_size );
$sizer->limit_size( $new_size );
π METHODS π
here's the whole method roster, and yes we're keeping every single one.
new( $cache, $max_size )β Construct a newCache::CacheSizerobject for the cache$cachewith a maximum size of$max_size. it's the birth of your sizer, periodt. πupdate_access_time( $key )β Inform the cache that the object specified by$keyhas been accessed. basically telling the cache "bestie was here" so it knows what's fresh. β¨limit_size( $new_size )β Use the sizing algorithms to get the cache down under$new_sizeif possible. note the "if possible" β it's not out here making promises it can't keep. π
π¦ PROPERTIES π¦
get_max_sizeβ The desired size limit for the cache under control. that's the goal number, the ceiling, the main character limit. π
π SEE ALSO π
Cache::CacheCache::CacheMetaDataCache::SizeAwareCache
go read those too, iykyk. β¨
π AUTHOR π
- Original author:
DeWitt Clinton <dewitt@unto.net> - Last author:
$Author: dclinton $ - Copyright (C) 2001-2003 DeWitt Clinton
all the credit, all the copyright, exactly as written. π
that's the whole page! footer tea: perl v5.34.0, dated 2022-06-30, for Cache:...heSizer(3pm). bye bestie! π
π¦ where this page comes from
- debian bookworm: libcache-cache-perl 1.08-3 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- debian trixie: libcache-cache-perl 1.08-3 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- ubuntu noble: libcache-cache-perl 1.08-3 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- ubuntu resolute: libcache-cache-perl 1.08-3 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- ubuntu stonking: libcache-cache-perl 1.08-3 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms