View on
MetaCPAN
search.cpan.org is shutting down
For details read Perl NOC. After June 25th this page will redirect to MetaCPAN.org
leedo > Plack-Session-Store-Redis > Plack::Session::Store::Redis

Download:
Plack-Session-Store-Redis-0.05.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.05   Source   Latest Release: Plack-Session-Store-Redis-0.01

NAME ^

Plack::Session::Store::Redis - Redis based session store for Plack apps.

VERSION ^

Version 0.05

SYNOPSIS ^

  use Plack::Builder;
  use Plack::Middleware::Session;
  use Plack::Session::Store::Redis;

  my $app = sub { ... };

  builder {
    enable 'Session', store => 'Redis';
    $app;
  };

DESCRIPTION ^

This module will store Plack session data on a redis server. NOTE: only works with redis 1.2.x, which appears to be a limitation of Redis.pm.

METHODS ^

new( %params )

Create a instance of this module. No parameters are required, but there are a few defaults that can be changed. You can set the IP address of the server with the 'host' option, and the port with 'port'. By default all of the keys in Redis will be prefixed with "session", but this can be changed with the 'prefix' option. You can also provide an 'expires' option that will be used to set an expiration on the redis key.

fetch( $session_id )

Fetches a session object from the database.

store( $session_id, \%session_obj )

Stores a session object in the database.

remove( $session_id )

Removes the session object from the database.

AUTHOR ^

Lee Aylward, <leedo at cpan.org>

BUGS ^

Please report any bugs or feature requests to bug-plack-session-store-redis at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Plack-Session-Store-Redis. 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 Plack::Session::Store::Redis

You can also look for information at:

ACKNOWLEDGEMENTS ^

LICENSE AND COPYRIGHT ^

Copyright 2010 Lee Aylward.

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.

syntax highlighting: