November 2014
Intermediate to advanced
258 pages
5h 15m
English
There might be some features that we want to implement but do not want to have a persistent storage for them. So, we would like to have these stored in a cache-like storage for a short period of time and then hide them, for example, showing a list of the recently visited products to the visitors on the website.
We will do this with the help of Redis, which can be installed using the following command:
$ pip install redis
Make sure that you run the Redis server for the connection to happen. To install and run a Redis server, refer to http://redis.io/topics/quickstart.
Then, we need to have the connection open to Redis. This can be done by adding the following lines of code to my_app/__init__.py:
from redis ...
Read now
Unlock full access