Apache::Session::Store::Memcached module can store persistent data using memcached (memory cache daemon) for Apache::Session storage.
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',
};
Apache::Session::Store::Memcached implements the storage interface for Apache::Session using Cache::Memcached frontend to memcached.
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).
Product's homepage
Requirements:
· Perl
What's New in This Release: [ read full changelog ]
· Fixed 'remove' session method with 'delete' Cache::Memcached call
· Added delete calls in tests