Cgi::session driver for memcached
use strict; use warnings; use Cache::Memcached; # or Cache::Memcached::Fast my $memcached = Cache::Memcached->new({ servers => [ 'localhost:11211' ], debug => 0, compress_threshold => 10_000, }); my $session = CGI::Session->new( "driver:memcached", $sid, { Memcached => $memcached } );
memcached stores session data into memcached.
The only supported driver argument is 'Memcached'. It's an instance of Cache::Memcached.
But I don't know how to get all objects store in memcached.
Kazuhiro Oinuma <[email protected]>
git clone git://github.com/oinume/p5-cgi-session-driver-memcached
Copyright (C) 2005 - 2009 Kazuhiro Oinuma <[email protected]>. All rights reserved. This library is free software. You can modify and or distribute it under the same terms as Perl itself.