Data::Valve::BucketStore::WithKeyedMutex - Role To Add Locking Via KeyedMutex
package MyBucketStore; use Moose; with 'Data::Valve::BucketStore'; with 'Data::Valve::BucketStore::WithKeyedMutex'; no Moose;
Attempts to acquire a lock. Returns KeyedMutex::Lock on success.
If no KeyedMutex object is available (or KeyedMutex object errors out because of, e.g., the server is unreacheable, etc.), returns 1. This basically means that your bucket store will run in degraded mode.
On lock failures, returns whatever KeyedMutex->lock returns (false)
To install Data::Valve, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Valve
CPAN shell
perl -MCPAN -e shell install Data::Valve
For more information on module installation, please visit the detailed CPAN module installation guide.