In the simplest terms, how do I set up redis for caching on my django project?
I’ve been trying to figure out caching for the last week now and the pieces are just not falling into place.
What do I need to do to get caching up and running. Just take care of headers and install redis??
The various tutorials and introductions all seem take for granted fundamental steps that are preventing me from understanding how to implement caching. Isn’t this ubiquitous? How does someone learn about this?
Ok, so maybe the connection you are missing is that once you have redis running, and you have the ability to set and get value to and from it using the python http://github.com/andymccurdy/redis-py you can start doing thing like this:
(pseudo-code to keep it simple)
The idea here being that you start to wrap your existing code in spots where you generate results for the client request, into something that first checks if a key exists and return it if it does.