Duva - Distributed Cache Server

TTL

Returns the remaining time to live of a key that has a timeout.

Syntax

TTL key

This introspection capability allows a client to check how many seconds a given key will continue to be part of the dataset.

Example

duva-cli> SET key "Hello" px 10000
"OK"
duva-cli> TTL key
(integer) 9 

Notes