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 documentation for a guide to the Aspect module.
You can find an example of using this aspect in the examples/ directory of the distribution.
examples/
Please report any bugs or feature requests through the web interface at http://rt.cpan.org/Public/Dist/Display.html?Name=Aspect-Library-Memoize.
Adam Kennedy <adamk@cpan.org>
Marcel Grünauer <marcel@cpan.org>
Ran Eilam <eilara@cpan.org>
You can find AOP examples in the examples/ directory of the distribution.
Copyright 2001 by Marcel Grünauer
Some parts copyright 2009 - 2011 Adam Kennedy.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Aspect::Library::Memoize, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Aspect::Library::Memoize
CPAN shell
perl -MCPAN -e shell install Aspect::Library::Memoize
For more information on module installation, please visit the detailed CPAN module installation guide.