Comments (4)
IMHO, this type of caching is best done at the application layer.
from twitter.
but this is the application layer. or do you mean I should integrate caching in the twitter library. that is what I don't want to do. as this is the api from my point of view
from twitter.
Until proven otherwise, I assume that everyone using this library has different tolerances for data freshness/staleness. If I took your suggestion and implemented APICache within the library, all responses would be cached for 10 minutes (since that is the policy of APICache). While this might be desirable for your application, someone who needs realtime responses would be unable to use this library anymore. So, IHMO, this library should not implement caching.
from twitter.
ah. now I get it. we are talking about different things. my point is, that at least the list_timeline response was not marshallable from APICache. And my question was if the response could be made marshallable. As you can see I can do a to_json and JSON.parse to use it with APICache. no need to have it in the api (but it would be great option, I guess).
and you are right. there are different tolerances ;-)
from twitter.
Related Issues (20)
- Twitter::Error::NotAcceptable HOT 3
- List add XX YY does not work HOT 1
- Do you know how to exclude blocked users' tweets from search results? HOT 1
- Cannot add Quick Replies to welcome message
- Public metrics Support HOT 1
- Issue installing with gem HOT 1
- callback token is null HOT 1
- OAuthActivity Must initialize Twitter before using getInstance
- Bulutdp HOT 2
- Oauth2 access token secret for Twitter
- Getting users who liked a tweet
- ruby 3+ and t/twitter result in a lot of frozen string errors HOT 2
- review gitflow
- Tweet
- API V2.0 support HOT 10
- Code is not able to compile HOT 1
- Could not authenticate you HOT 3
- Why there are ellipsis on long messages? HOT 1
- The .user method returns a 403 forbidden and needs to be upgraded HOT 2
- update with media returns 403
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twitter.