Letter P

perl-Tie-Memoize - add data to hash when needed

Website: http://www.perl.org/
License: GPL+ or Artistic
Description:
This package allows a tied hash to autoload its values on the first access,
and to use the cached value on the following accesses.

Only read-accesses (via fetching the value or exists) result in calls to
the functions; the modify-accesses are performed as on a normal hash.

The required arguments during tie are the hash, the package, and
the reference to the FETCing function.  The optional arguments are
an arbitrary scalar $data, the reference to the EXISTS function,
and initial values of the hash and of the existence cache.

Both the FETCHing function and the EXISTS functions have the
same signature: the arguments are $key, $data; $data is the same
value as given as argument during tie()ing.  Both functions should
return an empty list if the value does not exist.  If EXISTS
function is different from the FETCHing function, it should return
a TRUE value on success.  The FETCHing function should return the
intended value if the key is valid.

Packages

perl-Tie-Memoize-1.1-5m.mo8.noarch [30 KiB] Changelog by Yohsuke Ooi (2016-08-05):
- (20:5.20.0-5m)
- add gcc5 patches

Listing created by Repoview-0.6.6-1m.mo8