Uncaught RedisException: Redis server went away in

PHP
#make sure you connect b4 you set or get
$redis->connect('localhost')
Source

Also in PHP: