Closed aalfiann closed 5 years ago
I've tried like this
var key = 'test-cache'; var item = CACHE(key); var date = {timestamp:new Date().toISOString().replace("T"," ").replace("Z","").substr(0,19)}; if(!item){ CACHE(key,date,'60 seconds'); console.log(date); } else { console.log(item); }
but cache is always refresh after 2minutes?
whats the problem?
Hi. There is a simple answer.
CACHE()
F.cache.get2()
F.cache.get(key)
Solved. Thank you so much.
I've tried like this
but cache is always refresh after 2minutes?
whats the problem?