[Godwin,Kitaka] Refactored to cater for a bug in MockRedis where its ttl method returns a different value from the ttl method in StrictRedis.