Brent B. Powers > Memoize-ExpireLRU-0.55 > Memoize   Annotate
this POD   Open  1 View/Report Bugs   Memoize - Expiry plug-in
for Memoize that adds LRU cache expiration       use Memoize;
TIE => [Memoize::ExpireLRU,                     CACHESIZE => n,
Note that one need not use this module. It will be found by the
Memoize module.  The argument to CACHESIZE must be an integer.
Normally, this is all that is needed. Additional options are
available:          TUNECACHESIZE => m,         INSTANCE =>
'descriptive_name',         TIE => '[DB_File, $filename, O_RDWR
| O_CREATE, 0666]'   For the theory of Memoization, please see
the Memoize module documentation. This module implements an
expiry policy for Memoize that follows LRU semantics, that is,
the last n results, where n is specified as the argument to the
CACHESIZE parameter, will be cached.   It is often quite
difficult to determine what size cache will give optimal results
for a given function. To aid in determining this, ExpireLRU
includes cache