Cache-Adaptive-ByLoad
view release on metacpan or search on metacpan
lib/Cache/Adaptive/ByLoad.pm view on Meta::CPAN
print $cache->access({
key => $uri,
builder => sub {
# your HTML build logic here
$html;
},
});
=head1 DESCRIPTION
C<Cache::Adaptive::ByLoad> is a subclass of L<Cache::Adaptive>. The module adjusts cache lifetime by two factors; the load average of the platform and the percentage of the total time spent by the builder. In other words, the module tries to utiliz...
=head1 METHODS
=head2 new
Constructor. Takes a hashref of properties.
=head1 PROPERTIES
C<Cache::Adaptive::ByLoad> defines two properties in addition to the properties defined by L<Cache::Adaptive>.
( run in 0.325 second using v1.01-cache-2.11-cpan-624ce96ca49 )