Redis database
The optional qunits extra, which exposes qrobot_qunits, requires
Redis, a high performance, super fast and easy to
use in-memory database.
To install redis, check redis.io/docs/getting-started/installation/
The redis-py pyhon package is what is used by quantum-robot to connect to the redis database (redis.io/clients#python).
Note
On Linux, start a locally installed Redis server with
service redis-server start.
It is also possible to use Docker to spin a redis server without installing redis on your local machine:
docker run --name redis_container -p 6379:6379 -d redis
The to stop it:
docker stop redis_container
docker rm redis_container
To check wether the redis database is reachable, open a python shell
(for example, python in the installed environment) and run:
>>> from qrobot_qunits.redis_utils import redis_status
>>> redis_status()