summaryrefslogtreecommitdiffstats
path: root/src/commands/type.json
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/type.json')
-rw-r--r--src/commands/type.json55
1 files changed, 55 insertions, 0 deletions
diff --git a/src/commands/type.json b/src/commands/type.json
new file mode 100644
index 0000000..e8353b9
--- /dev/null
+++ b/src/commands/type.json
@@ -0,0 +1,55 @@
+{
+ "TYPE": {
+ "summary": "Determines the type of value stored at a key.",
+ "complexity": "O(1)",
+ "group": "generic",
+ "since": "1.0.0",
+ "arity": 2,
+ "function": "typeCommand",
+ "command_flags": [
+ "READONLY",
+ "FAST"
+ ],
+ "acl_categories": [
+ "KEYSPACE"
+ ],
+ "key_specs": [
+ {
+ "flags": [
+ "RO"
+ ],
+ "begin_search": {
+ "index": {
+ "pos": 1
+ }
+ },
+ "find_keys": {
+ "range": {
+ "lastkey": 0,
+ "step": 1,
+ "limit": 0
+ }
+ }
+ }
+ ],
+ "reply_schema": {
+ "oneOf": [
+ {
+ "description": "Key doesn't exist",
+ "type": "null"
+ },
+ {
+ "description": "Type of the key",
+ "type": "string"
+ }
+ ]
+ },
+ "arguments": [
+ {
+ "name": "key",
+ "type": "key",
+ "key_spec_index": 0
+ }
+ ]
+ }
+}