広木 大地 > Plack-Middleware-Scope-Session-0.01 > Plack::Middleware::Scope::Session

Download:
Plack-Middleware-Scope-Session-0.01.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source  

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.

syntax highlighting: