when should you open a redis connection code example
Example 1: check that redis is running
$ redis-cli ping
PONG
Example 2: redis quicstart
$ sudo apt install redis-server
$ redis-server
$ redis-cli ping
PONG
$ sudo apt install redis-server
$ redis-server