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.