Trotterdam wrote:I would not recommend having automatic caching. After all, results can change over time, and sometimes "how much has this value changed in the last ten seconds?" is exactly the information you want to know. If you want to avoid redundant API calls on a value that isn't likely to change, you should explicitly store the value yourself somewhere.
This all really depends on the meaning of cache? Since my ties requests to a object, This object that has data can both be refreshed, accessed, are do both. Its more "what the last request was since this object has a previous request" than a True cache.