Closed
Description
Duobiao Ou opened DATAREDIS-526 and commented
The redis command TTL and PTTL should return negative number(-1 or -2) when the key does not exist or if the key exist but has no associated expire.
But the function getExpire like this: redisTemplate.getExpire(key1, TimeUnit.SECONDS),the return value will be 0 and redisTemplate.getExpire(key1) will be -1 or -2
Referenced from: pull request #205