Code for Redis 2.6