Catalyst::Plugin::Session::Store::CHI - The great new Catalyst::Plugin::Session::Store::CHI!
Version 0.10
use Catalyst qw/Session Session::Store::CHI::File Session::State::Foo/; MyApp->config->{'Plugin::Session'} = { <chi args> }; # ... in an action: # $c->session->{foo} = 'bar'; # will be saved }
get session data from chi
store session data into chi
unsupported
Sets up the session cache file.
$c->config('Plugin::Session' => { chi_args => { expires => 1234, driver => 'Memory', global => 1 } }); $c->config('Plugin::Session' => { chi_args => { driver => 'File', root_dir => '/path/to/root' } }); $c->config('Plugin::Session' => { chi_args => { driver => 'FastMmap', root_dir => '/path/to/root', cache_size => '1k' } }); $c->config('Plugin::Session' => { chi_args => { driver => 'Memcached::libmemcached', servers => [ "10.0.0.15:11211", "10.0.0.15:11212" ], l1_cache => { driver => 'FastMmap', root_dir => '/path/to/root' } } }); $c->config('Plugin::Session' => { chi_args => { driver => 'DBI', dbh => $dbh } }); $c->config('Plugin::Session' => { chi_args => { driver => 'BerkeleyDB', root_dir => '/path/to/root' } });
Use this CHI subclass.
Accepts any valid option from "CONSTRUCTOR" in CHI
Accepts any valid option from "CONFIGURATION" in Catalyst::Plugin::Session
Catalyst, Catalyst::Plugin::Session, CHI.
Inverse inc. <info@inverse.ca>
Copyright (C) 2005-2015 Inverse inc.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.