NAME

Hyper::Persistent - Object cache for the Hyper Framework

VERSION

This document describes Hyper::Persistent 0.01

SYNOPSIS

use Hyper::Persistence;
my $cache = Hyper::Persistence->new();

DESCRIPTION

Hyper::Persistence is used for the workflow cache which is used to store hyper objects which are used on different pages.

ATTRIBUTES

uuid :name :default<()>
cache

SUBROUTINES/METHODS

START

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.

thaw

my $old_object_data = $object->thaw();

Thaw your persistence objects form the cache.

freeze

$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.

DIAGNOSTICS

CONFIGURATION AND ENVIRONMENT

Use Hyper::Singleton::Context for your configuration.

Sample for your Context.ini

[Hyper::Persistent]
cache_path=/tmp/hyper_cache

DEPENDENCIES

INCOMPATIBILITIES

BUGS AND LIMITATIONS

RCS INFORMATIONS

Last changed by

$Author: ac0v $

Id

$Id: Persistent.pm 357 2008-04-09 08:54:54Z ac0v $

Revision

$Revision: 357 $

Date

$Date: 2008-04-09 10:54:54 +0200 (Wed, 09 Apr 2008) $

HeadURL

$HeadURL: file:///srv/cluster/svn/repos/Hyper/Hyper/trunk/lib/Hyper/Persistent.pm $

AUTHOR

Andreas Specht <ACID@cpan.org>

LICENSE AND COPYRIGHT

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.