NAME

MojoX::Session::Store::Libmemcached - Memcached Store for MojoX::Session

SYNOPSIS

my $session = MojoX::Session->new(
    store => MojoX::Session::Store::Libmemcached->new(
        servers => ['server1:11211', 'server2:11211'],
    ),
);

or

# Mojolicious::Lite
plugin 'session' => {
    servers => ['server1:11211', 'server2:11211'],
};

or

# Mojolicious
$self->plugin('session' => {
    store => [libmemcached => {
        servers => ['server1:11211', 'server2:11211'],
    }],
});

DESCRIPTION

MojoX::Session::Store::Libmemcached is a store for MojoX::Session that stores a session in Memcached.

ATTRIBUTES

MojoX::Session::Store::Libmemcached implements the following attributes.

servers

Arrayref of servers, in the format host:port.

METHODS

MojoX::Session::Store::Libmemcached inherits all methods from MojoX::Session::Store.

new

Overload to connect to server.

create

Create session.

update

Update session.

load

Load session.

delete

Delete session.

AUTHOR

dostioffski, danielm@cpan.org.

COPYRIGHT

Copyright (C) 2010, Daniel Mascarenhas.

This program is free software, you can redistribute it and/or modify it under the same terms as Perl 5.10.