aboutsummaryrefslogtreecommitdiff
path: root/examples/redis-unstable/src/commands/expireat.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/expireat.json
parentc7ab12bba64d9c20ccd79b132dac475f7bc3923e (diff)
downloadcrep-5d8dfe892a2ea89f706ee140c3bdcfd89fe03fda.tar.gz
Add Redis source code for testing
Diffstat (limited to 'examples/redis-unstable/src/commands/expireat.json')
-rw-r--r--examples/redis-unstable/src/commands/expireat.json94
1 files changed, 94 insertions, 0 deletions
diff --git a/examples/redis-unstable/src/commands/expireat.json b/examples/redis-unstable/src/commands/expireat.json
new file mode 100644
index 0000000..c2ba5d8
--- /dev/null
+++ b/examples/redis-unstable/src/commands/expireat.json
@@ -0,0 +1,94 @@
1{
2 "EXPIREAT": {
3 "summary": "Sets the expiration time of a key to a Unix timestamp.",
4 "complexity": "O(1)",
5 "group": "generic",
6 "since": "1.2.0",
7 "arity": -3,
8 "function": "expireatCommand",
9 "history": [
10 [
11 "7.0.0",
12 "Added options: `NX`, `XX`, `GT` and `LT`."
13 ]
14 ],
15 "command_flags": [
16 "WRITE",
17 "FAST"
18 ],
19 "acl_categories": [
20 "KEYSPACE"
21 ],
22 "key_specs": [
23 {
24 "flags": [
25 "RW",
26 "UPDATE"
27 ],
28 "begin_search": {
29 "index": {
30 "pos": 1
31 }
32 },
33 "find_keys": {
34 "range": {
35 "lastkey": 0,
36 "step": 1,
37 "limit": 0
38 }
39 }
40 }
41 ],
42 "reply_schema": {
43 "oneOf": [
44 {
45 "const": 1,
46 "description": "The timeout was set."
47 },
48 {
49 "const": 0,
50 "description": "The timeout was not set. e.g. key doesn't exist, or operation skipped due to the provided arguments."
51 }
52 ]
53 },
54 "arguments": [
55 {
56 "name": "key",
57 "type": "key",
58 "key_spec_index": 0
59 },
60 {
61 "name": "unix-time-seconds",
62 "type": "unix-time"
63 },
64 {
65 "name": "condition",
66 "type": "oneof",
67 "optional": true,
68 "since": "7.0.0",
69 "arguments": [
70 {
71 "name": "nx",
72 "type": "pure-token",
73 "token": "NX"
74 },
75 {
76 "name": "xx",
77 "type": "pure-token",
78 "token": "XX"
79 },
80 {
81 "name": "gt",
82 "type": "pure-token",
83 "token": "GT"
84 },
85 {
86 "name": "lt",
87 "type": "pure-token",
88 "token": "LT"
89 }
90 ]
91 }
92 ]
93 }
94}