Skip to content

Commit d3fdeb6

Browse files
authored
SET options EX, PX, EXAT, PXAT take positive integer argument (redis#2617)
Clarify that argument is a positive integer, unlike EXPIRE which accepts zero and negative numbers too.
1 parent a8751ba commit d3fdeb6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

commands/set.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ Any previous time to live associated with the key is discarded on successful `SE
66

77
The `SET` command supports a set of options that modify its behavior:
88

9-
* `EX` *seconds* -- Set the specified expire time, in seconds.
10-
* `PX` *milliseconds* -- Set the specified expire time, in milliseconds.
11-
* `EXAT` *timestamp-seconds* -- Set the specified Unix time at which the key will expire, in seconds.
12-
* `PXAT` *timestamp-milliseconds* -- Set the specified Unix time at which the key will expire, in milliseconds.
9+
* `EX` *seconds* -- Set the specified expire time, in seconds (a positive integer).
10+
* `PX` *milliseconds* -- Set the specified expire time, in milliseconds (a positive integer).
11+
* `EXAT` *timestamp-seconds* -- Set the specified Unix time at which the key will expire, in seconds (a positive integer).
12+
* `PXAT` *timestamp-milliseconds* -- Set the specified Unix time at which the key will expire, in milliseconds (a positive integer).
1313
* `NX` -- Only set the key if it does not already exist.
1414
* `XX` -- Only set the key if it already exists.
1515
* `KEEPTTL` -- Retain the time to live associated with the key.

0 commit comments

Comments
 (0)