summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/setex.md
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-01-04 07:19:36 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-01-04 07:20:07 +0000
commitdd874ab02db04853d4b5952712ab34693f9a93de (patch)
tree4b4e05d004da14862aa1680cf761476fa2b4a05c /iredis/data/commands/setex.md
parentReleasing debian version 1.12.1-1. (diff)
downloadiredis-dd874ab02db04853d4b5952712ab34693f9a93de.tar.xz
iredis-dd874ab02db04853d4b5952712ab34693f9a93de.zip
Merging upstream version 1.13.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'iredis/data/commands/setex.md')
-rw-r--r--iredis/data/commands/setex.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/iredis/data/commands/setex.md b/iredis/data/commands/setex.md
index 6181b73..8d8b6b3 100644
--- a/iredis/data/commands/setex.md
+++ b/iredis/data/commands/setex.md
@@ -1,6 +1,6 @@
Set `key` to hold the string `value` and set `key` to timeout after a given
-number of seconds. This command is equivalent to executing the following
-commands:
+number of seconds.
+This command is equivalent to executing the following commands:
```
SET mykey value
@@ -8,9 +8,9 @@ EXPIRE mykey seconds
```
`SETEX` is atomic, and can be reproduced by using the previous two commands
-inside an `MULTI` / `EXEC` block. It is provided as a faster alternative to the
-given sequence of operations, because this operation is very common when Redis
-is used as a cache.
+inside an `MULTI` / `EXEC` block.
+It is provided as a faster alternative to the given sequence of operations,
+because this operation is very common when Redis is used as a cache.
An error is returned when `seconds` is invalid.