-
Notifications
You must be signed in to change notification settings - Fork 150
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
Support for Redis caching of query response #726
Comments
I'm not sure the caching feature has its place in GINO since it's not really related to the db interaction. You could try using async-caches, I use it in my own framework for this exact purpose and it works great. |
@gazorby thanks for the suggestion! You're right, Redis caching would be probably not included in GINO. However, I'm thinking it might be a handy design to build a slot in baked query API to plug-in caching support. It doesn't look easy now, but I do want to add this slot in 1.4/2.0. So please keep this issue open, thanks for proposing! |
I was wondering if there was a suggested way to cache a query response from GINO using redis. It would be great to have redis support built in so that repeated calls from clients getting the exact same results would hit the cache rather than cause a thundering herd to the DB.
The text was updated successfully, but these errors were encountered: