logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Apache::Session::Store::Memcached - Stores persistent data using memcached (memory cache daemon) for

Author

       Enrico Sorcinelli <enrico at sorcinelli>

Configurations

       This module wants to know standard options for Cache::Memcached. You can specify these options as
       Apache::Session's tie options like this:

          tie %session, 'Apache::Session::Memcached', $sid, {
             Servers => '10.0.0.1:20000 10.0.0.2:20000',
             Debug => 1
          };

       Note that spelling of options are slightly different from those for Cache::Memcached.

       'Servers', 'NoRehash', 'Readonly', 'Debug' and 'CompressThreshold' are the corrispondant to 'servers',
       'no_rehash', 'readonly', 'debug' and 'compress_threshold' Cache::Memcached parameters.

       In addition 'Server' can be either a scalar of the form 'IP:port IP:port ...', either an arrayref of
       hosts (as required by Cache::Memcached).

       See Cache::Memcached for details.

Description

       Apache::Session::Store::Memcached implements the storage interface for Apache::Session using
       Cache::Memcached frontend to memcached.

Name

       Apache::Session::Store::Memcached - Stores persistent data using memcached (memory cache daemon) for
       Apache::Session storage

See Also

       Apache::Session, Apache::Session::Flex, Cache::Memcached, memcached.

Synopsis

          tie %session, 'Apache::Session::Memcached', $sid, {
             Servers => '10.0.0.1:20000 10.0.0.2:20000',
             NoRehash => 1,
             Readonly => 0,
             Debug => 1,
             CompressThreshold => 10_000
          };

          # use with another locking/generation/serializaion scheme

          use Apache::Session::Flex;

          tie %session, 'Apache::Session::Flex', $id, {
             Store     => 'Memcached',
             Lock      => 'Null',
             Generate  => 'MD5',
             Serialize => 'Storable',
             Servers => '10.0.0.1:20000 10.0.0.2:20000',
          };

See Also