1Git::SVN::Memoize::YAMLU(s3e)r Contributed Perl DocumentaGtiito:n:SVN::Memoize::YAML(3)
2
3
4
6 Git::SVN::Memoize::YAML - store Memoized data in YAML format
7
9 use Memoize;
10 use Git::SVN::Memoize::YAML;
11
12 tie my %cache => 'Git::SVN::Memoize::YAML', $filename;
13 memoize('slow_function', SCALAR_CACHE => [HASH => \%cache]);
14 slow_function(arguments);
15
17 This module provides a class that can be used to tie a hash to a YAML
18 file. The file is read when the hash is initialized and rewritten when
19 the hash is destroyed.
20
21 The intent is to allow Memoize to back its cache with a file in YAML
22 format, just like Memoize::Storable allows Memoize to back its cache
23 with a file in Storable format. Unlike the Storable format, the YAML
24 format is platform-independent and fairly stable.
25
26 Carps on error.
27
29 See YAML::Any.
30
32 YAML::Any from CPAN.
33
35 None reported.
36
38 The entire cache is read into a Perl hash when loading the file, so
39 this is not very scalable.
40
41
42
43perl v5.16.3 2013-06-10 Git::SVN::Memoize::YAML(3)