Aspect::Library::Memoize - cross-cutting memoization
# memoize all subs that have '_slow_' in their name, under package MyApp aspect Memoize => call qr/^MyApp::.*_slow_/;
Aspect::Modular
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 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.
examples/
To install Aspect, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Aspect
CPAN shell
perl -MCPAN -e shell install Aspect
For more information on module installation, please visit the detailed CPAN module installation guide.