updated code to latest version of phpredis (2.2.3)