Apache::Session::MemcachedReplicator - A component of memcached's replication
use Apache::Session::MemcachedReplicator ; my $rep = MemcachedReplicator->new(in_file =>"/tmp/memcachedlog", out_file =>"/tmp/logmem", naptime => 2 , ); $rep->run ; exit;
This module reads log's memcached server and write one line by 'set' command . In order to force memcached to be verbose you must laugth it like this: memcached -u root -p 11211 -vv 2> /tmp/logmem1 &
The memcached log file must to be in input of MemcachedClient .
The lemonldap project (SSO under GPL) uses this module.
- in_file : input file . - out_file : write in output file - naptime : time between 2 cycles (in second) see slurp_memcached.pl in script directory.
This module was written by eric german <germanlinux@yahoo.fr>.
Apache::Session::MemcachedClient, Apache::Session::Memorycached,
To install Apache::Session::Memorycached, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache::Session::Memorycached
CPAN shell
perl -MCPAN -e shell install Apache::Session::Memorycached
For more information on module installation, please visit the detailed CPAN module installation guide.