Skip to content

Commit a4fa03c

Browse files
authored
DEV: some corrections for the previous merge... (#1211)
* DEV: add new HFE commands * DEV: correct previous merge
1 parent 653b6ca commit a4fa03c

File tree

4 files changed

+28
-11
lines changed

4 files changed

+28
-11
lines changed

content/commands/hgetex/index.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,17 +88,18 @@ syntax_str: "[EX\_seconds | PX\_milliseconds | EXAT\_unix-time-seconds | PXAT\_u
8888
\ | PERSIST] FIELDS\_numfields field [field ...]"
8989
title: HGETEX
9090
---
91-
Get the value of one or more fields of a given hash key and optionally set their expirations (time-to-live or TTL).
91+
92+
Get the value of one or more fields of a given hash key and optionally set their expiration time or time-to-live (TTL).
9293

9394
## Options
9495

9596
The `HGETEX` command supports a set of options:
9697

9798
* `EX seconds` -- Set the specified expiration time, in seconds.
9899
* `PX milliseconds` -- Set the specified expiration time, in milliseconds.
99-
* `EXAT unix-time-seconds` -- Set the specified Unix time at which the field will expire, in seconds.
100-
* `PXAT unix-time-milliseconds` -- Set the specified Unix time at which the field will expire, in milliseconds.
101-
* `PERSIST` -- Remove the TTL associated with the field.
100+
* `EXAT unix-time-seconds` -- Set the specified Unix time at which the fields will expire, in seconds.
101+
* `PXAT unix-time-milliseconds` -- Set the specified Unix time at which the fields will expire, in milliseconds.
102+
* `PERSIST` -- Remove the TTL associated with the fields.
102103

103104
The `EX`, `PX`, `EXAT`, `PXAT`, and `PERSIST` options are mutually exclusive.
104105

content/commands/hsetex/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ syntax_str: "[FNX | FXX] [EX\_seconds | PX\_milliseconds | EXAT\_unix-time-secon
106106
\ value ...]"
107107
title: HSETEX
108108
---
109-
Set the value of one or more fields of a given hash key, and optionally set their expirations (time-to-live or TTL).
109+
110+
Set the value of one or more fields of a given hash key, and optionally set their expiration time or time-to-live (TTL).
110111

111112
## Options
112113

@@ -116,9 +117,9 @@ The `HGETEX` command supports a set of options:
116117
* `FXX` -- Only set the fields if all of them already exist.
117118
* `EX seconds` -- Set the specified expiration time in seconds.
118119
* `PX milliseconds` -- Set the specified expiration time in milliseconds.
119-
* `EXAT unix-time-seconds` -- Set the specified Unix time in seconds at which the field will expire.
120-
* `PXAT unix-time-milliseconds` -- Set the specified Unix time in milliseconds at which the field will expire.
121-
* `KEEPTTL` -- Retain the TTL associated with the field.
120+
* `EXAT unix-time-seconds` -- Set the specified Unix time in seconds at which the fields will expire.
121+
* `PXAT unix-time-milliseconds` -- Set the specified Unix time in milliseconds at which the fields will expire.
122+
* `KEEPTTL` -- Retain the TTL associated with the fields.
122123

123124
The `EX`, `PX`, `EXAT`, `PXAT`, and `KEEPTTL` options are mutually exclusive.
124125

@@ -140,4 +141,3 @@ redis> HTTL mykey FIELDS 2 field1 field2
140141
1) (integer) 55481
141142
2) (integer) 55481
142143
```
143-

data/resp2_replies.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,15 @@
573573
"* [Nil reply](../../develop/reference/protocol-spec#bulk-strings): If the field is not present in the hash or key does not exist."
574574
],
575575
"HGETALL": [
576-
"[Array reply](../../develop/reference/protocol-spec#arrays): a list of fields and their values stored in the hash, or an empty list when key does not exist."
576+
"[Array reply](../../develop/reference/protocol-spec#arrays): a list of fields and their values, or an empty list when key does not exist."
577+
],
578+
"HGETDEL": [
579+
"[Array reply](../../develop/reference/protocol-spec#arrays): a list of deleted fields and their values or `nil` for fields that do not exist."
580+
],
581+
"HGETEX": [
582+
"* [Array reply](../../develop/reference/protocol-spec#arrays). For each field:",
583+
" - [Integer reply](../../develop/reference/protocol-spec#integers): `-2` if no such field exists in the provided hash key, or the provided key does not exist, or if the field exists but has no associated expiration set.",
584+
" - [Integer reply](../../develop/reference/protocol-spec#integers): the expiration in seconds."
577585
],
578586
"HGETDEL": [
579587
"[Array reply](../../develop/reference/protocol-spec#arrays): a list of deleted fields and their values or `nil` for fields that do not exist."

data/resp3_replies.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,15 @@
573573
"* [Null reply](../../develop/reference/protocol-spec#nulls): If the field is not present in the hash or key does not exist."
574574
],
575575
"HGETALL": [
576-
"[Map reply](../../develop/reference/protocol-spec#maps): a map of fields and their values stored in the hash, or an empty list when key does not exist."
576+
"[Map reply](../../develop/reference/protocol-spec#maps): a map of fields and their values, or an empty list when key does not exist."
577+
],
578+
"HGETDEL": [
579+
"[Array reply](../../develop/reference/protocol-spec#arrays): a list of deleted fields and their values or `nil` for fields that do not exist."
580+
],
581+
"HGETEX": [
582+
"* [Array reply](../../develop/reference/protocol-spec#arrays). For each field:",
583+
" - [Integer reply](../../develop/reference/protocol-spec#integers): `-2` if no such field exists in the provided hash key, or the provided key does not exist, or if the field exists but has no associated expiration set.",
584+
" - [Integer reply](../../develop/reference/protocol-spec#integers): the expiration in seconds."
577585
],
578586
"HGETDEL": [
579587
"[Array reply](../../develop/reference/protocol-spec#arrays): a list of deleted fields and their values or `nil` for fields that do not exist."

0 commit comments

Comments
 (0)