Catalyst::Plugin::Session::Store::Redis - Redis Session store for Catalyst
use Catalyst qw/ Session Session::Store::Redis Session::State::Foo /; MyApp->config->{Plugin::Session} = { expires => 3600, redis_server => '127.0.0.1:6379', redis_debug => 0 # or 1! }; # ... in an action: $c->session->{foo} = 'bar'; # will be saved
Catalyst::Plugin::Session::Store::Redis is a session storage plugin for Catalyst that uses the Redis (http://code.google.com/p/redis/) key-value database.
Catalyst::Plugin::Session::Store::Redis
This store does not automatically expires sessions. There is no need to call delete_expired_sessions to clear any expired sessions.
delete_expired_sessions
This module is currently untested, outside of the unit tests it ships with. It will eventually be used with a busy site, but is currently unproven. Patches are welcome!
Cory G Watson, <gphat at cpan.org>
<gphat at cpan.org>
Copyright 2009 Cold Hard Code, LLC.
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 Catalyst::Plugin::Session::Store::Redis, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Plugin::Session::Store::Redis
CPAN shell
perl -MCPAN -e shell install Catalyst::Plugin::Session::Store::Redis
For more information on module installation, please visit the detailed CPAN module installation guide.