Skip to content

Instantly share code, notes, and snippets.

@feedhenry-gists
Created June 10, 2011 12:20
Show Gist options
  • Save feedhenry-gists/1018735 to your computer and use it in GitHub Desktop.
Save feedhenry-gists/1018735 to your computer and use it in GitHub Desktop.
Mash Hash Caching
function doCache(hash, data) {
var obj = {
"hash": hash,
"data": data,
"cached": true
};
$fh.cache({
"act": "save",
"key": "_cache",
"val": obj,
"expire": CACHE_TIME
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment