ttl return -1 if key does not have an associated expire but return -2 if key does not exists
adding information about redis versions