check redis connection code example
Example 1: check redis server status
redis-cli ping
Example 2: check that redis is running
$ redis-cli ping
PONG
Example 3: redis cache start
sudo /etc/init.d/redis_6379 start
Example 4: redis-cli port host
$ redis-cli -h redis15.localnet.org -p 6390 ping
PONG