I have a bash script which is run every 10m by
cron. The script performs an expensive calculation for some value (say variable x=value). I need to "cache" this value for 2-3 hours. What are possible solutions to this problem?
I tried memcached but it doesn't seem to play well with bash.