Git::SVN::Memoize::YAML(3pm)

Git::SVN::Memoize::YAML3pm

Store memoized data in yaml format

Usage

    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);

Overview

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 Memoize::Storable 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 YAML::Any.

Dependencies

YAML::Any from CPAN.

Incompatibilities

None reported.

Releases

2 releases since Debian 8 (Jessie); the text changed 1 time.

  1. 8
  2. 9

Bugs

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

From git-svn 1:2.11.0-3+deb9u7 in Debian 9 (Stretch). Parsed by carta from the page's man source.