WWW::Session::Storage::Redis - Redis storage for WWW::Session
Redis backend for WWW::Session
Version 0.03
This module is used for storing serialized WWW::Session objects in redis
Usage :
use WWW::Session::Storage::Redis; my $storage = WWW::Session::Storage::Redis->new({ server => ["127.0.0.1:6379"] }); ... $storage->save($session_id,$expires,$serialized_data); my $serialized_data = $storage->retrive($session_id);
Creates a new WWW::Session::Storage::Redis object
This method accepts only one argument, a hashref that contains all the options that will be passed to the Cache::Redis module. The mendatory key in the hash is "server" which must be a scalar containing the redis server we want to use.
redis
See Cache::Redis module for more details on available options
Example :
my $storage = WWW::Session::Storage::Redis->new({ server => "127.0.0.1:6379" });
Stores the given information into the file
Retrieves the informations for a session, verifies that it's not expired and returns the string containing the serialized data
Completely removes the session data for the given session id
Jeffrey Goff, <jeffrey.goff at evozon.com>
<jeffrey.goff at evozon.com>
Please report any bugs or feature requests to bug-www-session-storage-redis at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WWW-Session-Storage-Redis. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-www-session-storage-redis at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc WWW::Session::Storage::Redis
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=WWW-Session-Storage-Redis
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/WWW-Session-Storage-Redis
CPAN Ratings
http://cpanratings.perl.org/d/WWW-Session-Storage-Redis
Search CPAN
http://search.cpan.org/dist/WWW-Session-Storage-Redis/
Copyright 2015 Evozon
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.
To install WWW::Session::Storage::Redis, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Session::Storage::Redis
CPAN shell
perl -MCPAN -e shell install WWW::Session::Storage::Redis
For more information on module installation, please visit the detailed CPAN module installation guide.