You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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: