The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Plack::Middleware::Scope::Session - Global Cache and Option per Request.

VERSION

Version 0.01

SYNOPSIS

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));

}

METHODS

call

SEE ALSO

Scope::Session,Plack::Middleware

AUTHOR

Daichi Hiroki, <hirokidaichi<AT>gmail.com>

LICENSE AND COPYRIGHT

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.