Dean Harding wrote:
One thing I like to do is you basically have two windows, a "fresh" timeout and a "stale" timeout. During the "fresh" timeout, the item from the cache is good enough. During the "stale" timeout, the item is coming up to expiry time, and it might be a good idea to start thinking about recalculating.
I should probably mention that I've thought about including this feature directly into a client library, but I never got around to it. It shouldn't be too hard, though.
Dean.