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.
@cli SET mykey "Hello" EXPIRE mykey 1 PTTL mykey