summaryrefslogtreecommitdiff
path: root/examples/redis-unstable/src/commands/hpersist.json
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2026-01-21 22:40:55 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2026-01-21 22:40:55 +0100
commit5d8dfe892a2ea89f706ee140c3bdcfd89fe03fda (patch)
tree1acdfa5220cd13b7be43a2a01368e80d306473ca /examples/redis-unstable/src/commands/hpersist.json
parentc7ab12bba64d9c20ccd79b132dac475f7bc3923e (diff)
downloadcrep-5d8dfe892a2ea89f706ee140c3bdcfd89fe03fda.tar.gz
Add Redis source code for testing
Diffstat (limited to 'examples/redis-unstable/src/commands/hpersist.json')
-rw-r--r--examples/redis-unstable/src/commands/hpersist.json83
1 files changed, 83 insertions, 0 deletions
diff --git a/examples/redis-unstable/src/commands/hpersist.json b/examples/redis-unstable/src/commands/hpersist.json
new file mode 100644
index 0000000..e7c1cb1
--- /dev/null
+++ b/examples/redis-unstable/src/commands/hpersist.json
@@ -0,0 +1,83 @@
1{
2 "HPERSIST": {
3 "summary": "Removes the expiration time for each specified field",
4 "complexity": "O(N) where N is the number of specified fields",
5 "group": "hash",
6 "since": "7.4.0",
7 "arity": -5,
8 "function": "hpersistCommand",
9 "history": [],
10 "command_flags": [
11 "WRITE",
12 "FAST"
13 ],
14 "acl_categories": [
15 "HASH"
16 ],
17 "key_specs": [
18 {
19 "flags": [
20 "RW",
21 "UPDATE"
22 ],
23 "begin_search": {
24 "index": {
25 "pos": 1
26 }
27 },
28 "find_keys": {
29 "range": {
30 "lastkey": 0,
31 "step": 1,
32 "limit": 0
33 }
34 }
35 }
36 ],
37 "reply_schema": {
38 "description": "Array of results. Returns empty array if the key does not exist.",
39 "type": "array",
40 "minItems": 0,
41 "maxItems": 4294967295,
42 "items": {
43 "oneOf": [
44 {
45 "description": "The field does not exist.",
46 "const": -2
47 },
48 {
49 "description": "The field exists but has no associated expire.",
50 "const": -1
51 },
52 {
53 "description": "Expiration time was removed",
54 "const": 1
55 }
56 ]
57 }
58 },
59 "arguments": [
60 {
61 "name": "key",
62 "type": "key",
63 "key_spec_index": 0
64 },
65 {
66 "name": "fields",
67 "token": "FIELDS",
68 "type": "block",
69 "arguments": [
70 {
71 "name": "numfields",
72 "type": "integer"
73 },
74 {
75 "name": "field",
76 "type": "string",
77 "multiple": true
78 }
79 ]
80 }
81 ]
82 }
83}