Cache-Isolator
view release on metacpan or search on metacpan
lib/Cache/Isolator.pm view on Meta::CPAN
Optional. When the value is being set zero, get_or_set will be waiting until lock becomes released.
When the value is being set positive integer value, get_or_set will die on reached trial count.
Defaults to 0.
=item timeout
Optional. The seconds until lock becomes released. Defaults to 30 seconds.
=item early_expires_ratio
Optional. if early_expires_ratio was set to greater than zero, Cache::Isolator stores to duplicate the cache. One of them is set to expire earlier than normal. Cache::Isolator gets the cache has been set to expire early in the specified percentage. T...
my $cache = Cache::Isolator->new(
early_expires_ratio => 10, # This means 1/10 ratio
);
=item expires_before
Optional. Seconds earlier expiration. Defaults is 10.
=back
( run in 0.389 second using v1.01-cache-2.11-cpan-624ce96ca49 )