
run-cached - Run commands cached and uncached

run-cached unix command
run-cached -c unix command

Print a cached result of the given command if available

If called without the -c option, run-cached just runs the command passed to it and caches its result.
Called with the -c option afterwards, it will not run the command given, but print its cached results, given that the cache hasn't expired (which typically happens after 24 hours).

# Fill the cache:
$ run-cached find /tmp -type f -print
# Print the cached results:
$ run-cached -c find /tmp -type f -print

Copyright 2007 by Mike Schilli, all rights reserved. This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.

2007, Mike Schilli <cpan@perlmeister.com>