Plack::Session::Store::Cache3pm
Cache session store
Usage
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;};
Overview
This 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
- new ( %params )
-
The constructor expects the cache param to be an object instance which has the get, set, and remove methods, it will throw an exception if that is not the case.
cache-
A simple accessor for the cache handle.
Releases
7 releases since Debian 7 (Wheezy); the text changed 6 times.