Skip to content

DEV: some corrections for the previous merge... #1211

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions content/commands/hgetex/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,18 @@ syntax_str: "[EX\_seconds | PX\_milliseconds | EXAT\_unix-time-seconds | PXAT\_u
\ | PERSIST] FIELDS\_numfields field [field ...]"
title: HGETEX
---
Get the value of one or more fields of a given hash key and optionally set their expirations (time-to-live or TTL).

Get the value of one or more fields of a given hash key and optionally set their expiration time or time-to-live (TTL).

## Options

The `HGETEX` command supports a set of options:

* `EX seconds` -- Set the specified expiration time, in seconds.
* `PX milliseconds` -- Set the specified expiration time, in milliseconds.
* `EXAT unix-time-seconds` -- Set the specified Unix time at which the field will expire, in seconds.
* `PXAT unix-time-milliseconds` -- Set the specified Unix time at which the field will expire, in milliseconds.
* `PERSIST` -- Remove the TTL associated with the field.
* `EXAT unix-time-seconds` -- Set the specified Unix time at which the fields will expire, in seconds.
* `PXAT unix-time-milliseconds` -- Set the specified Unix time at which the fields will expire, in milliseconds.
* `PERSIST` -- Remove the TTL associated with the fields.

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

Expand Down
10 changes: 5 additions & 5 deletions content/commands/hsetex/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ syntax_str: "[FNX | FXX] [EX\_seconds | PX\_milliseconds | EXAT\_unix-time-secon
\ value ...]"
title: HSETEX
---
Set the value of one or more fields of a given hash key, and optionally set their expirations (time-to-live or TTL).

Set the value of one or more fields of a given hash key, and optionally set their expiration time or time-to-live (TTL).

## Options

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

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

Expand All @@ -140,4 +141,3 @@ redis> HTTL mykey FIELDS 2 field1 field2
1) (integer) 55481
2) (integer) 55481
```

10 changes: 9 additions & 1 deletion data/resp2_replies.json
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,15 @@
"* [Nil reply](../../develop/reference/protocol-spec#bulk-strings): If the field is not present in the hash or key does not exist."
],
"HGETALL": [
"[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."
"[Array reply](../../develop/reference/protocol-spec#arrays): a list of fields and their values, or an empty list when key does not exist."
],
"HGETDEL": [
"[Array reply](../../develop/reference/protocol-spec#arrays): a list of deleted fields and their values or `nil` for fields that do not exist."
],
"HGETEX": [
"* [Array reply](../../develop/reference/protocol-spec#arrays). For each field:",
" - [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.",
" - [Integer reply](../../develop/reference/protocol-spec#integers): the expiration in seconds."
],
"HGETDEL": [
"[Array reply](../../develop/reference/protocol-spec#arrays): a list of deleted fields and their values or `nil` for fields that do not exist."
Expand Down
10 changes: 9 additions & 1 deletion data/resp3_replies.json
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,15 @@
"* [Null reply](../../develop/reference/protocol-spec#nulls): If the field is not present in the hash or key does not exist."
],
"HGETALL": [
"[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."
"[Map reply](../../develop/reference/protocol-spec#maps): a map of fields and their values, or an empty list when key does not exist."
],
"HGETDEL": [
"[Array reply](../../develop/reference/protocol-spec#arrays): a list of deleted fields and their values or `nil` for fields that do not exist."
],
"HGETEX": [
"* [Array reply](../../develop/reference/protocol-spec#arrays). For each field:",
" - [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.",
" - [Integer reply](../../develop/reference/protocol-spec#integers): the expiration in seconds."
],
"HGETDEL": [
"[Array reply](../../develop/reference/protocol-spec#arrays): a list of deleted fields and their values or `nil` for fields that do not exist."
Expand Down