Apache-Session-Memorycached

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

     tie %s, 'Apache::Session::Memorycached', undef,
        {servers  => ['mymemcachedserver:port'],
         'timeout' => '300',
         'updateOnly' => 1 ,
         'principal' => uid,  
            };

    In order to optimize the network ,you can use a local memcached server.
    All read-only opération are sending fisrt at local server .If you need
    write ou rewrite data , the data is sending at the principal memcached
    sever and local cache too for synchronisation.

    note : 'updateOnly' => 1 just realize up-date operation not init
    operation. Init operation is use in order to book and lock the number
    session but it's not available in this module

      'principal' => uid :  this  parameter is use to create reverse reference 
      like this : MD5_hex(uid) => id_session in memcached server . By this it usefull to retrieve id_session from principal name . And add uid_MD5 => MD5_hex(uid) in main session .
 
DESCRIPTION
    This module is an implementation of Apache::Session. It uses the

lib/Apache/Session/Memorycached.pm  view on Meta::CPAN

     };

 tie %s, 'Apache::Session::Memorycached', undef,
    {servers  => ['mymemcachedserver:port'],
     'timeout' => '300',
     'updateOnly' => 1 ,
     'principal' => uid,  
        };

In order to optimize the network ,you can use a local memcached server.
All read-only opération are sending fisrt at local server .If you need write ou rewrite data , the data is sending at the principal memcached sever and local cache too  for synchronisation.

note :  'updateOnly' => 1  just realize up-date operation not init operation. 
 Init operation is use in order to book and lock the number session but it's not available in this module 
 
  'principal' => uid :  this  parameter is use to create reverse reference 
  like this : MD5_hex(uid) => id_session in memcached server . By this it usefull to retrieve id_session from principal name . And add uid_MD5 => MD5_hex(uid) in main session .
 



lib/Apache/Session/Store/Memorycached.pm  view on Meta::CPAN

 Example

 tie %s, 'Apache::Session::Memorycached', undef,
    {servers  => ['mymemcachedserver:port'],
     'timeout' => '300',
     'updateOnly' => 1 ,
     'principal' => uid,  
        };

In order to optimize the network ,you can use a local memcached server.
All read-only opération are sending fisrt at local server .If you need write ou rewrite data , the data is sending at the principal memcached sever and local cache too  for synchronisation.

note :  'updateOnly' => 1  just realize up-date operation not init operation. 
 Init operation is use in order to book and lock the number session but it's not available in this module 
 
  'principal' => uid :  this  parameter is use to create reverse reference 
  like this : MD5_hex(uid) => id_session in memcached server . By this it usefull to retrieve id_session from principal name . And add uid_MD5 => MD5_hex(uid) in main session .
 

=head1 NOTES



( run in 0.287 second using v1.01-cache-2.11-cpan-0d8aa00de5b )