[twitter-dev] Re: How long to keep a cache?

2009-03-14 Thread gsmaverick

I'm not sure what type of application it is but stuff like clearing
the cache if they add a friend in your app would be a good idea as
well.  Personally I would let the user decide how long.

On Mar 13, 9:22 am, Jason Levine  wrote:
> I'm working on a Twitter application.  As part of my application, to
> reduce calls to the Twitter API, I'm implementing a cache of the
> user's Friends list.  My question is: How long should I keep this
> cache before I consider it out of date?  1 Day?  3 Days?  1 Week?


[twitter-dev] Re: How long to keep a cache?

2009-03-13 Thread Doug Williams

Jason,
The answer depends on how your application is affected by a stale and
possibly incorrect list. If the accuracy of the list is not critical
and the application needs the API calls for other logic, you can cache
for longer. If the list needs to be roughly accurate you should cache
for a day.

This vague answer is attempting to suggest that this is a design
choice that is heavily based on the goals of your application.

Thanks,
Doug Williams
Twitter API Support
http://twitter.com/dougw

On Mar 13, 9:22 am, Jason Levine  wrote:
> I'm working on a Twitter application.  As part of my application, to
> reduce calls to the Twitter API, I'm implementing a cache of the
> user's Friends list.  My question is: How long should I keep this
> cache before I consider it out of date?  1 Day?  3 Days?  1 Week?