Hyper::Persistent - Object cache for the Hyper Framework
This document describes Hyper::Persistent 0.01
use Hyper::Persistence; my $cache = Hyper::Persistence->new();
Hyper::Persistence is used for the workflow cache which is used to store hyper objects which are used on different pages.
Initialize uuid with return from Data::UUID->new->create_str() if uuid is false. Create a Cache::FileCache object in the uuid namespace with cache path from config and store it to the cache attribute.
my $old_object_data = $object->thaw();
Thaw your persistence objects form the cache.
$object->freeze({ flow_control => $flow_control, single_validators => $single_validators, group_validators => $group_validators service => $service, usecase => $usecase, shown_controls => $shown_controls, controls => [ $base_control, $any_other_control, ], });
Freeze your objects for persistence. The controls key is used as an for an control specific cache.
Use Hyper::Singleton::Context for your configuration.
Sample for your Context.ini
[Hyper::Persistent] cache_path=/tmp/hyper_cache
version
Class::Std
Readonly
Data::UUID
Storable
Cache::FileCache
Hyper::Error
Hyper::Singleton::Context
Hyper::Functions
$Author: ac0v $
$Id: Persistent.pm 357 2008-04-09 08:54:54Z ac0v $
$Revision: 357 $
$Date: 2008-04-09 10:54:54 +0200 (Mi, 09 Apr 2008) $
$HeadURL: http://svn.hyper-framework.org/Hyper/Hyper/tags/0.05/lib/Hyper/Persistent.pm $
Andreas Specht <ACID@cpan.org>
<ACID@cpan.org>
Copyright (c) 2007, 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.