Plack::Middleware::Scope::Session - Global Cache and Option per Request.
Version 0.01
Plack::Middleware::Scope::Session works like mod_perl's pnotes.
builder { enable q|Plack::Middleware::Scope::Session| }
if enable this, give your application a per-request cache
use Scope::Session; sub something_in_your_application{ ... my $env = Scope::Session->get_option('psgi.env'); Scope::Session->notes( 'SingletonPerRequest' , Plack::Request->new($env)); }
Scope::Session,Plack::Middleware
Daichi Hiroki, <hirokidaichi<AT>gmail.com>
<hirokidaichi<AT>gmail.com>
Copyright 2009 Daichi Hiroki.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Plack::Middleware::Scope::Session, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Middleware::Scope::Session
CPAN shell
perl -MCPAN -e shell install Plack::Middleware::Scope::Session
For more information on module installation, please visit the detailed CPAN module installation guide.