Skip to content

Commit 97d8999

Browse files
committed
Initial commit
1 parent 989cdef commit 97d8999

File tree

2 files changed

+173
-0
lines changed

2 files changed

+173
-0
lines changed

content/commands/delex.md

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
---
2+
acl_categories:
3+
- '@write'
4+
- '@string'
5+
- '@fast'
6+
arguments:
7+
- display_text: key
8+
key_spec_index: 0
9+
name: key
10+
type: key
11+
- arguments:
12+
- display_text: ifeq-value
13+
name: ifeq-value
14+
token: IFEQ
15+
type: string
16+
- display_text: ifne-value
17+
name: ifne-value
18+
token: IFNE
19+
type: string
20+
- display_text: ifdeq-digest
21+
name: ifdeq-digest
22+
token: IFDEQ
23+
type: integer
24+
- display_text: ifdne-digest
25+
name: ifdne-digest
26+
token: IFDNE
27+
type: integer
28+
name: condition
29+
optional: true
30+
type: oneof
31+
arity: -2
32+
categories:
33+
- docs
34+
- develop
35+
- stack
36+
- oss
37+
- rs
38+
- rc
39+
- oss
40+
- kubernetes
41+
- clients
42+
command_flags:
43+
- write
44+
- fast
45+
complexity: O(1) for IFEQ/IFNE, O(N) for IFDEQ/IFDNE where N is the length of the
46+
string value.
47+
description: Conditionally removes the specified key based on value or digest comparison.
48+
group: string
49+
hidden: false
50+
key_specs:
51+
- RW: true
52+
begin_search:
53+
spec:
54+
index: 1
55+
type: index
56+
delete: true
57+
find_keys:
58+
spec:
59+
keystep: 1
60+
lastkey: 0
61+
limit: 0
62+
type: range
63+
linkTitle: DELEX
64+
since: 8.4.0
65+
summary: Conditionally removes the specified key based on value or digest comparison.
66+
syntax_fmt: "DELEX key [IFEQ\_ifeq-value | IFNE\_ifne-value | IFDEQ\_ifdeq-digest\
67+
\ |\n IFDNE\_ifdne-digest]"
68+
syntax_str: "[IFEQ\_ifeq-value | IFNE\_ifne-value | IFDEQ\_ifdeq-digest | IFDNE\_\
69+
ifdne-digest]"
70+
title: DELEX
71+
---
72+
73+
Conditionally removes the specified key based on value or digest comparison.
74+
75+
## Options
76+
77+
The DELEX command supports a set of options that modify its behavior:
78+
79+
* `IFEQ value` -- Remove the key if the value is equal to the specified value.
80+
* `IFNE value` -- Remove the key if the value is not equal to the specified value.
81+
* `IFDEQ digest` -- Remove the key if the digest is equal to the specified digest.
82+
* `IFDNE digest` -- Remove the key if the digest is not equal to the specified digest.
83+
84+
In 8.4, keys must be of type string.
85+
86+
## Return information
87+
88+
{{< multitabs id="return-info"
89+
tab1="RESP2"
90+
tab2="RESP3" >}}
91+
92+
One of the following:
93+
- [Error reply]({{< relref "/develop/reference/protocol-spec#simple-errors" >}}) if key exists but holds a value that is not a string and `IFEQ/IFNE/IFDEQ/IFDNE` is specified.
94+
- [Integer reply]({{< relref "/develop/reference/protocol-spec#integers" >}}): 0 if not deleted (the key does not exist or a specified `IFEQ/IFNE/IFDEQ/IFDNE` condition is false), or 1 if deleted.
95+
96+
-tab-sep-
97+
98+
TODO: Add RESP3 return information
99+
100+
{{< /multitabs >}}
101+

content/commands/digest.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
---
2+
acl_categories:
3+
- '@read'
4+
- '@string'
5+
- '@fast'
6+
arguments:
7+
- display_text: key
8+
key_spec_index: 0
9+
name: key
10+
type: key
11+
arity: 2
12+
categories:
13+
- docs
14+
- develop
15+
- stack
16+
- oss
17+
- rs
18+
- rc
19+
- oss
20+
- kubernetes
21+
- clients
22+
command_flags:
23+
- readonly
24+
- fast
25+
complexity: O(N) where N is the length of the string value.
26+
description: Returns the XXH3 hash of a string value.
27+
group: string
28+
hidden: false
29+
key_specs:
30+
- RO: true
31+
access: true
32+
begin_search:
33+
spec:
34+
index: 1
35+
type: index
36+
find_keys:
37+
spec:
38+
keystep: 1
39+
lastkey: 0
40+
limit: 0
41+
type: range
42+
linkTitle: DIGEST
43+
since: 8.4.0
44+
summary: Returns the XXH3 hash of a string value.
45+
syntax_fmt: DIGEST key
46+
syntax_str: ''
47+
title: DIGEST
48+
---
49+
Returns the XXH3 hash of a string value.
50+
51+
## Required arguments
52+
53+
<details open><summary><code>key</code></summary>
54+
55+
TODO: Add description for key (key)
56+
57+
</details>
58+
59+
## Return information
60+
61+
{{< multitabs id="return-info"
62+
tab1="RESP2"
63+
tab2="RESP3" >}}
64+
65+
TODO: Add RESP2 return information
66+
67+
-tab-sep-
68+
69+
TODO: Add RESP3 return information
70+
71+
{{< /multitabs >}}
72+

0 commit comments

Comments
 (0)