Cache-Isolator

 view release on metacpan or  search on metacpan

lib/Cache/Isolator.pm  view on Meta::CPAN

B<Required>. L<Cache::Memcached::Fast> object or similar interface object.

=item concurrency

Optional. Number of get_or_set callback executed in parallel.
If many process need to run callback, they wait until lock becomes released or able to get values.
Defaults to 1. It means no concurrency. 

=item interval

Optional. The seconds for busy loop interval. Defaults to 0.01 seconds.

=item trial

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.



( run in 0.244 second using v1.01-cache-2.11-cpan-1dc43b0fbd2 )