|
NAMEPlack::Session::Store::Cache - Cache session store SYNOPSIS use Plack::Builder;
use Plack::Session::Store::Cache;
use CHI;
my $app = sub {
return [ 200, [ 'Content-Type' => 'text/plain' ], [ 'Hello Foo' ] ];
};
builder {
enable 'Session',
store => Plack::Session::Store::Cache->new(
cache => CHI->new(driver => 'FastMmap')
);
$app;
};
DESCRIPTIONThis will persist session data using any module which implements the Cache interface. This offers a lot of flexibility due to the many excellent Cache, Cache::Cache and CHI drivers available. This is a subclass of Plack::Session::Store and implements its full interface. METHODS
BUGSAll complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT. AUTHORMasahiro Chiba
|