I am using Flask- Restful for a Python API, which is working well. Now, there are few DB operations which I want to cache, how do I go about that? I have searched online and there were a couple of options like flask cache and CacheTools and I am not able to decide.
Flask cache was mainly about caching the requests rather than the data used inside, correct me if I am wrong.
Cachetools has useful methods like lru_cache etc. which could be of use to me?
PS: I am primarily a Java guy and used to use guava with spring boot in my previous services, so looking for something like that in python.