Perl Diver 2.31
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Git::SVN::Memoize::YAML

Name Git::SVN::Memoize::YAML
Version
Located at /usr/share/perl5/vendor_perl
File /usr/share/perl5/vendor_perl/Git/SVN/Memoize/YAML.pm
Is Core No
Search CPAN for this module Git::SVN::Memoize::YAML
Documentation Git::SVN::Memoize::YAML
Module Details Git::SVN::Memoize::YAML

NAME

Git::SVN::Memoize::YAML - store Memoized data in YAML format


SYNOPSIS

    use Memoize;
    use Git::SVN::Memoize::YAML;
    tie my %cache => 'Git::SVN::Memoize::YAML', $filename;
    memoize('slow_function', SCALAR_CACHE => [HASH => \%cache]);
    slow_function(arguments);


DESCRIPTION

This module provides a class that can be used to tie a hash to a YAML file. The file is read when the hash is initialized and rewritten when the hash is destroyed.

The intent is to allow Memoize to back its cache with a file in YAML format, just like the Memoize::Storable manpage allows Memoize to back its cache with a file in Storable format. Unlike the Storable format, the YAML format is platform-independent and fairly stable.

Carps on error.


DIAGNOSTICS

See the YAML::Any manpage.


DEPENDENCIES

the YAML::Any manpage from CPAN.


INCOMPATIBILITIES

None reported.


BUGS

The entire cache is read into a Perl hash when loading the file, so this is not very scalable.

Perl Diver brought to you by ScriptSolutions.com © 1997- 2024