Created
June 10, 2011 12:20
-
-
Save feedhenry-gists/1018735 to your computer and use it in GitHub Desktop.
Mash Hash Caching
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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