Like TTL this command returns the remaining time to live of a key that has an expire set, with the sole difference that TTL returns the amount of remaining time in seconds while PTTL returns it in milliseconds.
Integer reply: Time to live in milliseconds or
key does not exist
or does not have a timeout.
OKredis> EXPIRE mykey 1
(integer) 1redis> PTTL mykey