Bash Function for Caching Results
▻http://shlomif-tech.livejournal.com/63690.html
In this blog I’d like to blog about the newest edition to my Bash (the UNIX shell) aliases file: the cache() function. What it does is cache the result of a lengthy command in a file in a common place, and then simply output this file if it already exists.
#shell #outil #cache (à mettre dans son .profile
; mais y a pas un truc plus standard, et qui tiendrait compte des arguments, saurait utiliser un serveur memcached etc ?)
même question ici
▻http://unix.stackexchange.com/questions/38101/does-bash-have-a-built-in-caching-command-available-sort-of-like