suxinmin / android-query

Automatically exported from code.google.com/p/android-query
0 stars 0 forks source link

Invalidate Cache on X date #93

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be handy to have a method for invalidating the cache on a specific 
date. For example, I have an API that returns JSON with information about each 
day in the year. It only needs to make that call once a year, refreshing it on 
the 1st of Jan. Right now I just calculate the difference in dates and make the 
call with the expiration. I figured this could be something that aquery could 
handle with relative ease.

Original issue reported on code.google.com by Rob.Isak...@gmail.com on 24 Oct 2012 at 4:20