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.
- CGI::Session
- Cache::Memcached or Cache::Memcached::Fast
- Implement traverse method!
- 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.