forked from gphat/catalyst-plugin-session-store-redis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
55 lines (37 loc) · 1.38 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
NAME
Catalyst::Plugin::Session::Store::Redis - The great new Catalyst::Plugin::Session::Store::Redis!
SYNOPSIS
use Catalyst qw/
Session
Session::Store::Redis
Session::State::Foo
/;
MyApp->config->{session} = {
expires => 3600,
redis_server => '127.0.0.1:6379',
redis_debug => 0, # or 1!
redis_reconnect => 60 # 60 is default
};
# ... in an action:
$c->session->{foo} = 'bar'; # will be saved
DESCRIPTION
Catalyst::Plugin::Session::Store::Redis is a session storage plugin for
Catalyst that uses the Redis key-value database.
NOTES
Expired Sessions
This store does B<not> automatically expire sessions. You can call
C<delete_expired_sessions> to clear any expired sessions. All sessions will
then be checked, one at a time. If a session has expired then it will be
deleted.
WARNING
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!
AUTHOR
Cory G Watson, C<< <gphat at cpan.org> >>
COPYRIGHT & LICENSE
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.