CGI::Session::Driver::memcached - 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 <oinume@cpan.org>
git clone git://github.com/oinume/p5-cgi-session-driver-memcached
Copyright (C) 2005 - 2009 Kazuhiro Oinuma <oinume@cpan.org>. All rights reserved. This library is free software. You can modify and or distribute it under the same terms as Perl itself.
To install CGI::Session::Driver::memcached, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CGI::Session::Driver::memcached
CPAN shell
perl -MCPAN -e shell install CGI::Session::Driver::memcached
For more information on module installation, please visit the detailed CPAN module installation guide.