diff options
Diffstat (limited to 'iredis/data/commands/getex.md')
-rw-r--r-- | iredis/data/commands/getex.md | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/iredis/data/commands/getex.md b/iredis/data/commands/getex.md index 27dfc3d..89ce809 100644 --- a/iredis/data/commands/getex.md +++ b/iredis/data/commands/getex.md @@ -1,17 +1,15 @@ -Get the value of `key` and optionally set its expiration. `GETEX` is similar to -`GET`, but is a write command with additional options. +Get the value of `key` and optionally set its expiration. +`GETEX` is similar to `GET`, but is a write command with additional options. ## Options The `GETEX` command supports a set of options that modify its behavior: -- `EX` _seconds_ -- Set the specified expire time, in seconds. -- `PX` _milliseconds_ -- Set the specified expire time, in milliseconds. -- `EXAT` _timestamp-seconds_ -- Set the specified Unix time at which the key - will expire, in seconds. -- `PXAT` _timestamp-milliseconds_ -- Set the specified Unix time at which the - key will expire, in milliseconds. -- `PERSIST` -- Remove the time to live associated with the key. +* `EX` *seconds* -- Set the specified expire time, in seconds. +* `PX` *milliseconds* -- Set the specified expire time, in milliseconds. +* `EXAT` *timestamp-seconds* -- Set the specified Unix time at which the key will expire, in seconds. +* `PXAT` *timestamp-milliseconds* -- Set the specified Unix time at which the key will expire, in milliseconds. +* `PERSIST` -- Remove the time to live associated with the key. @return |