summaryrefslogtreecommitdiff
path: root/examples/redis-unstable/src/commands/persist.json
diff options
context:
space:
mode:
Diffstat (limited to 'examples/redis-unstable/src/commands/persist.json')
-rw-r--r--examples/redis-unstable/src/commands/persist.json56
1 files changed, 56 insertions, 0 deletions
diff --git a/examples/redis-unstable/src/commands/persist.json b/examples/redis-unstable/src/commands/persist.json
new file mode 100644
index 0000000..11e6e01
--- /dev/null
+++ b/examples/redis-unstable/src/commands/persist.json
@@ -0,0 +1,56 @@
1{
2 "PERSIST": {
3 "summary": "Removes the expiration time of a key.",
4 "complexity": "O(1)",
5 "group": "generic",
6 "since": "2.2.0",
7 "arity": 2,
8 "function": "persistCommand",
9 "command_flags": [
10 "WRITE",
11 "FAST"
12 ],
13 "acl_categories": [
14 "KEYSPACE"
15 ],
16 "key_specs": [
17 {
18 "flags": [
19 "RW",
20 "UPDATE"
21 ],
22 "begin_search": {
23 "index": {
24 "pos": 1
25 }
26 },
27 "find_keys": {
28 "range": {
29 "lastkey": 0,
30 "step": 1,
31 "limit": 0
32 }
33 }
34 }
35 ],
36 "reply_schema": {
37 "oneOf": [
38 {
39 "const": 0,
40 "description": "Key does not exist or does not have an associated timeout."
41 },
42 {
43 "const": 1,
44 "description": "The timeout has been removed."
45 }
46 ]
47 },
48 "arguments": [
49 {
50 "name": "key",
51 "type": "key",
52 "key_spec_index": 0
53 }
54 ]
55 }
56}