aboutsummaryrefslogtreecommitdiff
path: root/examples/redis-unstable/src/commands/object-refcount.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/object-refcount.json
parentc7ab12bba64d9c20ccd79b132dac475f7bc3923e (diff)
downloadcrep-5d8dfe892a2ea89f706ee140c3bdcfd89fe03fda.tar.gz
Add Redis source code for testing
Diffstat (limited to 'examples/redis-unstable/src/commands/object-refcount.json')
-rw-r--r--examples/redis-unstable/src/commands/object-refcount.json50
1 files changed, 50 insertions, 0 deletions
diff --git a/examples/redis-unstable/src/commands/object-refcount.json b/examples/redis-unstable/src/commands/object-refcount.json
new file mode 100644
index 0000000..48009bb
--- /dev/null
+++ b/examples/redis-unstable/src/commands/object-refcount.json
@@ -0,0 +1,50 @@
1{
2 "REFCOUNT": {
3 "summary": "Returns the reference count of a value of a key.",
4 "complexity": "O(1)",
5 "group": "generic",
6 "since": "2.2.3",
7 "arity": 3,
8 "container": "OBJECT",
9 "function": "objectCommand",
10 "command_flags": [
11 "READONLY"
12 ],
13 "acl_categories": [
14 "KEYSPACE"
15 ],
16 "command_tips": [
17 "NONDETERMINISTIC_OUTPUT"
18 ],
19 "key_specs": [
20 {
21 "flags": [
22 "RO"
23 ],
24 "begin_search": {
25 "index": {
26 "pos": 2
27 }
28 },
29 "find_keys": {
30 "range": {
31 "lastkey": 0,
32 "step": 1,
33 "limit": 0
34 }
35 }
36 }
37 ],
38 "arguments": [
39 {
40 "name": "key",
41 "type": "key",
42 "key_spec_index": 0
43 }
44 ],
45 "reply_schema": {
46 "description": "the number of references",
47 "type": "integer"
48 }
49 }
50}