1Plack::Session::Store::UCsaecrheC(o3nptmr)ibuted Perl DoPcluamcekn:t:aSteisosnion::Store::Cache(3pm)
2
3
4

NAME

6       Plack::Session::Store::Cache - Cache session store
7

SYNOPSIS

9         use Plack::Builder;
10         use Plack::Session::Store::Cache;
11         use CHI;
12
13         my $app = sub {
14             return [ 200, [ 'Content-Type' => 'text/plain' ], [ 'Hello Foo' ] ];
15         };
16
17         builder {
18             enable 'Session',
19                 store => Plack::Session::Store::Cache->new(
20                     cache => CHI->new(driver => 'FastMmap')
21                 );
22             $app;
23         };
24

DESCRIPTION

26       This will persist session data using any module which implements the
27       Cache interface. This offers a lot of flexibility due to the many
28       excellent Cache, Cache::Cache and CHI drivers available.
29
30       This is a subclass of Plack::Session::Store and implements its full
31       interface.
32

METHODS

34       new ( %params )
35           The constructor expects the cache param to be an object instance
36           which has the get, set, and remove methods, it will throw an
37           exception if that is not the case.
38
39       cache
40           A simple accessor for the cache handle.
41

BUGS

43       All complex software has bugs lurking in it, and this module is no
44       exception. If you find a bug please either email me, or add the bug to
45       cpan-RT.
46

AUTHOR

48       Masahiro Chiba
49
50
51
52perl v5.28.0                      2015-03-02 Plack::Session::Store::Cache(3pm)
Impressum