Memoize::Expire

Memoize::Expire

NAME

Memoize::Expire - Plug-in module for automatic expiration of memoized values

SYNOPSIS

  use Memoize;
  use Memoize::Expire;
  tie my %cache => 'Memoize::Expire',
  LIFETIME => $lifetime,    # In seconds
NUM_USES => $n_uses;

  memoize 'function', SCALAR_CACHE => [HASH => \%cache ];

DESCRIPTION

Memoize::Expire is a plug-in module for Memoize. It allows the cached values for memoized functions to expire automatically. This manual assumes you are already famili