Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tree: f6f79442ab
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (10 sloc) 432 Bytes



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 -1 when key does not exist or does not have a timeout.


SET mykey "Hello"
EXPIRE mykey 1
PTTL mykey
Jump to Line
Something went wrong with that request. Please try again.