Hyper::Request::ModPerl2 - store data for one Request only
This document describes Hyper::Request::ModPerl2 0.01
use Hyper::Request::ModPerl2; my $object = Hyper::Request::ModPerl2->new();
Used to keep data persistent for one request. This mechanism is used for Hyper's Singleton mechanism.
Instead of Hyper::Request::Default this class works with ModPerl2.
$object->set_note({ 'Hyper::Singleton::Test' => $singleton_test });
Add a named note/item to request-sensitive storage.
$object->get_note('Hyper::Singleton::Test');
Get a named note/item from request-sensitive storage.
$object->cleanup();
Remote all notes/items from request-sensitive storage.
version
$Author: ac0v $
$Id: ModPerl2.pm 528 2009-01-11 05:43:02Z ac0v $
$Revision: 528 $
$Date: 2009-01-11 06:43:02 +0100 (So, 11 Jan 2009) $
$HeadURL: http://svn.hyper-framework.org/Hyper/Hyper/tags/0.05/lib/Hyper/Request/ModPerl2.pm $
Andreas Specht <ACID@cpan.org>
<ACID@cpan.org>
Copyright (c) 2009, Andreas Specht <ACID@cpan.org>. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Hyper, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Hyper
CPAN shell
perl -MCPAN -e shell install Hyper
For more information on module installation, please visit the detailed CPAN module installation guide.