-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Caching of results #104
Comments
I just added this to
|
My changes obviously would work poorly if you POSTed data and then did a GET, so maybe the |
While I generally love this idea, I agree with your point about doing a GET after a POST. For that reason I don't think this is sufficient. However, if you'd be willing to take a look at resolving this problem, I'd like to have the ability to enable something like this in a future gem release. |
I'm on it. I'll see if I can find time this weekend. |
I like this concept, but might consider it an extension, rather than built-in to the gem itself. Switching to an http client like Faraday offers the possibility for library to allow gem users to modify the request/response cycle through middleware. Gems like ocktokit and github use this approach; anyone using these clients can insert faraday-http-cache faraday middleware for http caching or something else for their own in-memory store if desired. Thoughts on introducing this to ruby-trello? |
👍 to that idea. |
I (obviously) think this should be a feature in the gem. The accessibility of this gem would be greatly benefitted from it. Granted, it can be a difficult task to have full caching, but even if there was an option to enable it for GET requests, that would dramatically improve its speed. Also, I could just do a better job of keeping the objects I want in memory, so as I write this, I'm seeing that this is certainly gold-plating, but you already have an awesome gem, why not decorate it a bit? |
I think it could be safely enabled in a client if you give it something like |
Forgive me if this exists and I couldn't find it, but I think it would be awesome if an HTTP cache of some sort existed with the client so that we could traverse object relationships without making the same HTTP calls over and over.
Ex: I have a
card
, I would like to be able to callcard.actions
multiple times for various reasons, but the response ofactions
should be cached so that the HTTP call isn't made again.Anyone else have thoughts on this?
Thank you very much for this gem. It follows the Trello API very well, and once I figured that out, I had no problem working with it.
The text was updated successfully, but these errors were encountered: