NAME

Apache::Session::MemcachedClient - A component of memcached's replication

SYNOPSIS

 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;

DESCRIPTION

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

Options

- 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.

AUTHOR

This module was written by eric german <germanlinux@yahoo.fr>.

SEE ALSO

Apache::Session::MemcachedReplicator, Apache::Session::Memorycached,