NAME

Plack::Session::Store::Transparent - Session store container which provides transparent access

SYNOPSIS

use Plack::Builder;
use Plack::Middleware::Session;
use Plack::Session::Store::Transparent;
use Plack::Session::Store::DBI;
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::Transparent->new(
			origin => Plack::Session::Store::DBI->new(
				get_dbh => sub { DBI->connect(@connect_args) }
			),
			cache => Plack::Session::Store::Cache->new(
				cache => CHI->new(driver => 'FastMmap')
			)
		);
	$app;
};

DESCRIPTION

This will manipulate multiple session stores transparently. This is a subclass of Plack::Session::Store and implements its full interface.

METHODS

LICENSE

Copyright (C) Ichito Nagata.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Ichito Nagata i.nagata110@gmail.com