Data::Valve::BucketStore::Memcached - Memcached Backend
Data::Valve::BucketStore::Memcached uses Memcached as its storage backend, and allows multiple processes to work together.
You need to specify a memcached server in order for t to work:
Data::Valve->new( bucket_store => { module => "Memcached", args => { store => { servers => [ '127.0.0.1:11211' ], namespace => ... } } } );
This module also provides locking mechanism by means of KeyedMutex. You should specify one at construction time:
Data::Valve->new( bucket_store => { module => "Memcached", args => { mutex => { args => { sock => "host:port" # <-- here } } } } );
This allows all coordinating processes to share the same mutex, and you will get "correct" throttling information
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.