Ran Eilam > Aspect-0.09_02 > Aspect::Library::Memoize

Download:
Aspect-0.09_02.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  1
View/Report Bugs
Source   Latest Release: Aspect-0.12

NAME ^

Aspect::Library::Memoize - cross-cutting memoization

SYNOPSIS ^

  # memoize all subs that have '_slow_' in their name, under package MyApp
  aspect Memoize => call qr/^MyApp::.*_slow_/;

SUPER ^

Aspect::Modular

DESCRIPTION ^

An aspect interface on the Memoize module. Only difference from Memoize module is that you can specify subs to be memoized using pointcuts.

Works by memoizing on the 1st call, and calling the memoized version on subsequent calls.

SEE ALSO ^

See the Aspect pods for a guide to the Aspect module.

You can find an example of using this aspect in the examples/ directory of the distribution.

syntax highlighting: