NAME

WWW::Session::Storage::Memcached - Memcached storage for WWW::Session

VERSION

Version 0.02

SYNOPSIS

This module is used for storring serialized WWW::Session objects in memcached

Usage :

use WWW::Session::Storage::Memcached;

my $storage = WWW::Session::Storage::Memcached->new({ servers => ["127.0.0.1:11211"] });
...

$storage->save($session_id,$expires,$serialized_data);

my $serialized_data = $storage->retrive($session_id);

SUBROUTINES/METHODS

new

Creates a new WWW::Session::Storage::File object

This method accepts only one argument, a hashref that contains all the options that will be passed to the Cache::Memcached module. The mendatory key in the hash is "servers" wihich must be an array ref containing all the memcached servers we want to use.

See Cache::Memcached module for more details on available options

Example :

my $storage = WWW::Session::Storage::Memcached->new({ servers => ["127.0.0.1:11211"] });

save

Stores the given information into the file

retrieve

Retrieves the informations for a session, verifies that it's not expired and returns the string containing the serialized data

delete

Completely removes the session data for the given session id

AUTHOR

Gligan Calin Horea, <gliganh at gmail.com>

BUGS

Please report any bugs or feature requests to bug-www-session at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WWW-Session. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc WWW::Session::Storage::Memcached

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

Copyright 2012 Gligan Calin Horea.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.