NAME

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

SYNOPSIS

use Apache::Session::MemcachedReplicator ;
my $rep = MemcachedReplicator->new(in_file =>"/tmp/memcachedlog",
                                   out_file =>"/tmp/logmem",
                                   naptime => 2 ,
                                  );
$rep->run ;
exit;

DESCRIPTION

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.

Options

- in_file : input file .
- out_file : write in output file 
- naptime :  time between 2 cycles (in second)


 see slurp_memcached.pl in script directory.

AUTHOR

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

SEE ALSO

Apache::Session::MemcachedClient, Apache::Session::Memorycached,