CGI::Session::Driver::memcached - CGI::Session driver for memcached


CGI-Session-Driver-memcached documentation  | view source Contained in the CGI-Session-Driver-memcached distribution.

Index


NAME

Top

CGI::Session::Driver::memcached - CGI::Session driver for memcached

SYNOPSIS

Top

    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 } );

DESCRIPTION

Top

memcached stores session data into memcached.

DRIVER ARGUMENTS

Top

The only supported driver argument is 'Memcached'. It's an instance of Cache::Memcached.

REQUIREMENTS

Top

CGI::Session
Cache::Memcached or Cache::Memcached::Fast

TODO

Top

Implement traverse method!

But I don't know how to get all objects store in memcached.

AUTHOR

Top

Kazuhiro Oinuma <oinume@cpan.org>

REPOSITORY

Top

  git clone git://github.com/oinume/p5-cgi-session-driver-memcached

COPYRIGHT AND LICENSE

Top


CGI-Session-Driver-memcached documentation  | view source Contained in the CGI-Session-Driver-memcached distribution.