check redis code example
Example 1: check redis version
redis-server --version
Example 2: check that redis is running
$ redis-cli ping
PONG
Example 3: redis cache start
sudo /etc/init.d/redis_6379 start
redis-server --version
$ redis-cli ping
PONG
sudo /etc/init.d/redis_6379 start