Skip Menu |

This queue is for tickets about the Memoize CPAN distribution.

Report information
The Basics
Id: 18171
Status: open
Priority: 0/
Queue: Memoize

People
Owner: Nobody in particular
Requestors: ikegami [...] adaelis.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 0.66
  • 1.00
  • 1.01
Fixed in: (no value)



Subject: HASH arg to Memoize::Expire
The documentation of Memoize::Expire claims: "You can use the HASH option to Memoize::Expire to supply a tied hash in place of the ordinary hash that Memoize::Expire will normally use." It proceeds with an example of this functionality. However, this functionality was never implemented. The fix is quite simple. Simply change $args{C} = \%cache; in TIEHASH to $args{C} = $args{HASH} || \%cache;
On 2006-03-14 14:17:15, guest wrote: Show quoted text
> The documentation of Memoize::Expire claims: "You can use the HASH > option to Memoize::Expire to supply a tied hash in place of the ordinary > hash that Memoize::Expire will normally use." It proceeds with an > example of this functionality. However, this functionality was never > implemented. > > The fix is quite simple. Simply change > $args{C} = \%cache; > in TIEHASH to > $args{C} = $args{HASH} || \%cache;
This is a duplicate of https://rt.cpan.org/Ticket/Display.html?id=18170 However, the patch proposed here seems to be a little more compact any maybe preferable.