MKDoc::Core::FileCache - Cache::FileCache wrapper for MKDoc::Core
sub cached_foo { my $key = shift; my $foo_cache = MKDoc::Core::FileCache->instance ('foo_cache'); return $foo_cache->get ($key) || do { my $val = compute_expensive_foo ($key); $foo_cache->set ($key, $val, "1 day"); $val; }; }
To install MKDoc::Core, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MKDoc::Core
CPAN shell
perl -MCPAN -e shell install MKDoc::Core
For more information on module installation, please visit the detailed CPAN module installation guide.