Apache::Session::MemcachedClient - A component of memcached's replication
use Apache::Session::MemcachedClient ; my $rep = MemcachedClient->new(in_file =>"/tmp/logmem1", out_file =>"/tmp/log1", naptime => 2 , localmemcached => {'servers' => ['localhost:11211'], }, remotememcached =>{'servers' => ['localhost:11311'], }, signature => 'master11211', safety_mode =>'actived' , ); $rep->run ; exit;
This module is an implementation of replication for memcached backend session storage . It replicates session created by Apache::Session::Memorycached between master to slave OR master to master.
In input , it reads a file issued from Apache::Session::MemcachedReplicator then it sends session on the other memcached server .
The lemonldap project (SSO under GPL) uses this module
- in_file : input file . - out_file : log in output file - naptime : time between 2 cycles (in second) - localmemcached : you local server - remotememcached : you remote server (pehap the slave) - signature : string used in order to avoid loops replication - safety_mode : thrue : read on remote server after write in order to be sure of success of replication see client_memcached.pl in script directory.
This module was written by eric german <germanlinux@yahoo.fr>.
Apache::Session::MemcachedReplicator, 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.