I am using Django with Tastypie to provide a restful api. Since each GET request will produce a query to the backend database, what is the best way to cache the request using redis cache?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You might want to consider Johnny-Cache it will cache all ORM queries to memcached. It does work with TastyPie, I have used it for this same reason.
Here is a good discussion of ORM caching convore.