NAME
Apache::Session::Store::Memcached - Stores 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',
};
DESCRIPTION
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).
See Cache::Memcached for details.
SEE ALSO
Apache::Session, Apache::Session::Flex, Cache::Memcached, memcached.
AUTHOR
Enrico Sorcinelli <enrico at sorcinelli>
COPYRIGHT AND LICENSE
Copyright (C) 2004 by Enrico Sorcinelli
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.1 or, at your option, any later version of Perl 5 you may have available.