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::ScopeSession - Global Cache and Option per Request.

VERSION

Version 0.01

SYNOPSIS

Plack::Middleware::ScopeSession works like mod_perl's pnotes.

builder {
    enable q|Plack::Middleware::ScopeSession|
} 

if enable this, give your application a per-request cache

use ScopeSession;

sub something_in_your_application{
    ...
    my $env = ScopeSession->get_option('psgi.env');
    ScopeSession->notes( 'SingletonPerRequest' , Plack::Request->new($env));

}

METHODS

call

SEE ALSO

ScopeSession,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.