Daisuke Maki > Data-Valve-0.00003 > Data::Valve::BucketStore::Memcached

Download:
Data-Valve-0.00003.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Source   Latest Release: Data-Valve-0.00010

NAME ^

Data::Valve::BucketStore::Memcached - Memcached Backend

DESCRIPTION ^

Data::Valve::BucketStore::Memcached uses Memcached as its storage backend, and allows multiple processes to work together.

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

METHODS ^

try_push