antirez a452b54849 TTL / PTTL commands: two bugs fixed.
This commit fixes two corner cases for the TTL command.

1) When the key was already logically expired (expire time older
than current time) the command returned -1 instead of -2.

2) When the key was existing and the expire was found to be exactly 0
(the key was just about to expire), the command reported -1 (that is, no
expire) instead of a TTL of zero (that is, about to expire).
2013-03-26 13:59:33 +01:00
..
2012-04-13 18:05:51 -07:00
2013-01-19 11:03:19 +01:00
2013-01-19 11:03:19 +01:00
2013-01-19 11:03:19 +01:00
2013-02-11 11:44:18 +01:00
2013-01-19 11:03:19 +01:00
2013-03-25 19:32:20 +01:00
2013-03-26 13:59:33 +01:00
2013-01-19 11:03:19 +01:00
2012-10-22 11:56:06 +02:00
2013-01-19 11:03:19 +01:00
2013-01-19 11:03:19 +01:00
2013-01-19 11:03:19 +01:00
2013-01-19 11:03:19 +01:00
2013-01-19 11:03:19 +01:00
2013-01-19 11:03:19 +01:00
2013-02-05 10:49:24 +01:00
2011-07-06 15:22:00 +02:00
2013-01-19 11:03:19 +01:00