Hyper::Persistent - Object cache for the Hyper Framework


Back to Top


NAME

Hyper::Persistent - Object cache for the Hyper Framework

Back to Top


VERSION

This document describes Hyper::Persistent 0.01

Back to Top


SYNOPSIS

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

Back to Top


DESCRIPTION

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

Back to Top


ATTRIBUTES

uuid :name :default<()>
cache

Back to Top


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.

Back to Top


DIAGNOSTICS

Back to Top


CONFIGURATION AND ENVIRONMENT

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

Sample for your Context.ini

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

Back to Top


DEPENDENCIES

Back to Top


INCOMPATIBILITIES

Back to Top


BUGS AND LIMITATIONS

Back to Top


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 (Mi, 09 Apr 2008) $

HeadURL

$HeadURL: http://svn.hyper-framework.org/Hyper/Hyper/tags/0.05/lib/Hyper/Persistent.pm $

Back to Top


AUTHOR

Andreas Specht <ACID@cpan.org>

Back to Top


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.

Back to Top

 Hyper::Persistent - Object cache for the Hyper Framework