AttentionThis page documents an earlier version. Go to the latest (v2.0)version.
Returns the remaining time to live of a key that has a timeout, in seconds.
Returns TTL in seconds, encoded as integer response.
You can do this as shown below.
$ SET yugakey "Yugabyte"
$ EXPIRE yugakey 10
$ TTL yugakey