From 32c3a426a6f0b4f99e46dfb805dbca522bce7f8a Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 22 May 2009 16:08:20 +0200 Subject: [PATCH] TTL command doc added --- doc/CommandReference.html | 2 +- doc/ExpireCommand.html | 2 +- doc/TtlCommand.html | 38 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 doc/TtlCommand.html diff --git a/doc/CommandReference.html b/doc/CommandReference.html index a83513c1..a00c4c47 100644 --- a/doc/CommandReference.html +++ b/doc/CommandReference.html @@ -28,7 +28,7 @@

Redis Command Reference

Every command name links to a specific wiki page describing the behavior of the command.

Connection handling

Commands operating on string values

-

Commands operating on the key space

+

Commands operating on the key space

Commands operating on lists

Commands operating on sets

Multiple databases handling commands

diff --git a/doc/ExpireCommand.html b/doc/ExpireCommand.html index 5f36dece..2e02431d 100644 --- a/doc/ExpireCommand.html +++ b/doc/ExpireCommand.html @@ -48,7 +48,7 @@ OK 1: the timeout was set. 0: the timeout was not set since the key already has an associated timeout, or the key does not exist.

See also

- +
diff --git a/doc/TtlCommand.html b/doc/TtlCommand.html new file mode 100644 index 00000000..94b308c8 --- /dev/null +++ b/doc/TtlCommand.html @@ -0,0 +1,38 @@ + + + + + + + +
+ + + +
+
+ +TtlCommand: Contents
  TTL _key_
    Return value
    See also +
+ +

TtlCommand

+ +
+ +
+ +
+

TTL _key_

The TTL command returns the remaining time to live in seconds of a key that has an EXPIRE set. This introspection capability allows a Redis client to check how many seconds a given key will continue to be part of the dataset. If the Key does not exists or does not have an associated expire, -1 is returned.
+

Return value

Integer reply

See also

+ +
+ +
+
+ + + -- 2.49.0