aboutsummaryrefslogtreecommitdiff
path: root/examples/redis-unstable/src/commands/lrem.json
diff options
context:
space:
mode:
Diffstat (limited to 'examples/redis-unstable/src/commands/lrem.json')
-rw-r--r--examples/redis-unstable/src/commands/lrem.json56
1 files changed, 56 insertions, 0 deletions
diff --git a/examples/redis-unstable/src/commands/lrem.json b/examples/redis-unstable/src/commands/lrem.json
new file mode 100644
index 0000000..c267d3e
--- /dev/null
+++ b/examples/redis-unstable/src/commands/lrem.json
@@ -0,0 +1,56 @@
1{
2 "LREM": {
3 "summary": "Removes elements from a list. Deletes the list if the last element was removed.",
4 "complexity": "O(N+M) where N is the length of the list and M is the number of elements removed.",
5 "group": "list",
6 "since": "1.0.0",
7 "arity": 4,
8 "function": "lremCommand",
9 "command_flags": [
10 "WRITE"
11 ],
12 "acl_categories": [
13 "LIST"
14 ],
15 "key_specs": [
16 {
17 "flags": [
18 "RW",
19 "DELETE"
20 ],
21 "begin_search": {
22 "index": {
23 "pos": 1
24 }
25 },
26 "find_keys": {
27 "range": {
28 "lastkey": 0,
29 "step": 1,
30 "limit": 0
31 }
32 }
33 }
34 ],
35 "reply_schema": {
36 "description": "The number of removed elements.",
37 "type": "integer",
38 "minimum": 0
39 },
40 "arguments": [
41 {
42 "name": "key",
43 "type": "key",
44 "key_spec_index": 0
45 },
46 {
47 "name": "count",
48 "type": "integer"
49 },
50 {
51 "name": "element",
52 "type": "string"
53 }
54 ]
55 }
56}