Commit 72935b9d authored by Vitaly Arbuzov's avatar Vitaly Arbuzov
Browse files

Merge branch 'unstable' into dict-split-by-slot

parents 6baf20af 6948daca
...@@ -141,6 +141,61 @@ ...@@ -141,6 +141,61 @@
} }
] ]
} }
] ],
"reply_schema": {
"description": "Array of matched members information",
"anyOf": [
{
"description": "If no WITH* option is specified, array of matched members names",
"type": "array",
"items": {
"description": "name",
"type": "string"
}
},
{
"type": "array",
"items": {
"type": "array",
"minItems": 1,
"maxItems": 4,
"items": [
{
"description": "Matched member name",
"type": "string"
}
],
"additionalItems": {
"oneOf": [
{
"description": "If WITHDIST option is specified, the distance from the center as a floating point number, in the same unit specified in the radius",
"type": "string"
},
{
"description": "If WITHHASH option is specified, the geohash integer",
"type": "integer"
},
{
"description": "If WITHCOORD option is specified, the coordinates as a two items x,y array (longitude,latitude)",
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": [
{
"description": "latitude (x)",
"type": "number"
},
{
"description": "longitude (y)",
"type": "number"
}
]
}
]
}
}
}
]
}
} }
} }
...@@ -192,6 +192,65 @@ ...@@ -192,6 +192,65 @@
"key_spec_index": 2, "key_spec_index": 2,
"optional": true "optional": true
} }
] ],
"reply_schema": {
"description": "Array of matched members information",
"anyOf": [
{
"description": "If no WITH* option is specified, array of matched members names",
"type": "array",
"items": {
"description": "name",
"type": "string"
}
},
{
"type": "array",
"items": {
"type": "array",
"minItems": 1,
"maxItems": 4,
"items": [
{
"description": "Matched member name",
"type": "string"
}
],
"additionalItems": {
"oneOf": [
{
"description": "If WITHDIST option is specified, the distance from the center as a floating point number, in the same unit specified in the radius",
"type": "string"
},
{
"description": "If WITHHASH option is specified, the geohash integer",
"type": "integer"
},
{
"description": "If WITHCOORD option is specified, the coordinates as a two items x,y array (longitude,latitude)",
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": [
{
"description": "latitude (x)",
"type": "number"
},
{
"description": "longitude (y)",
"type": "number"
}
]
}
]
}
}
},
{
"description": "number of items stored in key",
"type": "integer"
}
]
}
} }
} }
...@@ -130,6 +130,61 @@ ...@@ -130,6 +130,61 @@
} }
] ]
} }
] ],
"reply_schema": {
"description": "Array of matched members information",
"anyOf": [
{
"description": "If no WITH* option is specified, array of matched members names",
"type": "array",
"items": {
"description": "name",
"type": "string"
}
},
{
"type": "array",
"items": {
"type": "array",
"minItems": 1,
"maxItems": 4,
"items": [
{
"description": "Matched member name",
"type": "string"
}
],
"additionalItems": {
"oneOf": [
{
"description": "If WITHDIST option is specified, the distance from the center as a floating point number, in the same unit specified in the radius",
"type": "string"
},
{
"description": "If WITHHASH option is specified, the geohash integer",
"type": "integer"
},
{
"description": "If WITHCOORD option is specified, the coordinates as a two items x,y array (longitude,latitude)",
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": [
{
"description": "latitude (x)",
"type": "number"
},
{
"description": "longitude (y)",
"type": "number"
}
]
}
]
}
}
}
]
}
} }
} }
...@@ -207,6 +207,61 @@ ...@@ -207,6 +207,61 @@
"type": "pure-token", "type": "pure-token",
"optional": true "optional": true
} }
] ],
"reply_schema": {
"description": "Array of matched members information",
"anyOf": [
{
"description": "If no WITH* option is specified, array of matched members names",
"type": "array",
"items": {
"description": "name",
"type": "string"
}
},
{
"type": "array",
"items": {
"type": "array",
"minItems": 1,
"maxItems": 4,
"items": [
{
"description": "Matched member name",
"type": "string"
}
],
"additionalItems": {
"oneOf": [
{
"description": "If WITHDIST option is specified, the distance from the center as a floating point number, in the same unit specified in the radius",
"type": "string"
},
{
"description": "If WITHHASH option is specified, the geohash integer",
"type": "integer"
},
{
"description": "If WITHCOORD option is specified, the coordinates as a two items x,y array (longitude,latitude)",
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": [
{
"description": "latitude (x)",
"type": "number"
},
{
"description": "longitude (y)",
"type": "number"
}
]
}
]
}
}
}
]
}
} }
} }
...@@ -219,6 +219,10 @@ ...@@ -219,6 +219,10 @@
"type": "pure-token", "type": "pure-token",
"optional": true "optional": true
} }
] ],
"reply_schema": {
"description": "the number of elements in the resulting set",
"type": "integer"
}
} }
} }
...@@ -33,6 +33,18 @@ ...@@ -33,6 +33,18 @@
} }
} }
], ],
"reply_schema": {
"oneOf": [
{
"description": "The value of the key.",
"type": "string"
},
{
"description": "Key does not exist.",
"type": "null"
}
]
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -33,6 +33,17 @@ ...@@ -33,6 +33,17 @@
} }
} }
], ],
"reply_schema": {
"description": "The bit value stored at offset.",
"oneOf": [
{
"const": 0
},
{
"const": 1
}
]
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -34,6 +34,18 @@ ...@@ -34,6 +34,18 @@
} }
} }
], ],
"reply_schema": {
"oneOf": [
{
"description": "The value of the key.",
"type": "string"
},
{
"description": "The key does not exist.",
"type": "null"
}
]
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -35,6 +35,18 @@ ...@@ -35,6 +35,18 @@
} }
} }
], ],
"reply_schema": {
"oneOf": [
{
"description": "The value of the key.",
"type": "string"
},
{
"description": "Key does not exist.",
"type": "null"
}
]
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -32,6 +32,10 @@ ...@@ -32,6 +32,10 @@
} }
} }
], ],
"reply_schema": {
"type": "string",
"description": "The substring of the string value stored at key, determined by the offsets start and end (both are inclusive)."
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -40,6 +40,18 @@ ...@@ -40,6 +40,18 @@
} }
} }
], ],
"reply_schema": {
"oneOf": [
{
"description": "The old value stored at the key.",
"type": "string"
},
{
"description": "The key does not exist.",
"type": "null"
}
]
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -39,6 +39,10 @@ ...@@ -39,6 +39,10 @@
} }
} }
], ],
"reply_schema": {
"type": "integer",
"description": "The number of fields that were removed from the hash."
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -24,6 +24,54 @@ ...@@ -24,6 +24,54 @@
"acl_categories": [ "acl_categories": [
"CONNECTION" "CONNECTION"
], ],
"reply_schema": {
"type": "object",
"additionalProperties": false,
"properties": {
"server": {
"type": "string"
},
"version": {
"type": "string"
},
"proto": {
"const": 3
},
"id": {
"type": "integer"
},
"mode": {
"type": "string"
},
"role": {
"type": "string"
},
"modules": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
},
"ver": {
"type": "integer"
},
"path": {
"type": "string"
},
"args": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
},
"arguments": [ "arguments": [
{ {
"name": "arguments", "name": "arguments",
......
...@@ -32,6 +32,18 @@ ...@@ -32,6 +32,18 @@
} }
} }
], ],
"reply_schema": {
"oneOf": [
{
"description": "The hash does not contain the field, or key does not exist.",
"const": 0
},
{
"description": "The hash contains the field.",
"const": 1
}
]
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -33,6 +33,18 @@ ...@@ -33,6 +33,18 @@
} }
} }
], ],
"reply_schema": {
"oneOf": [
{
"description": "The value associated with the field.",
"type": "string"
},
{
"description": "If the field is not present in the hash or key does not exist.",
"type": "null"
}
]
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -35,6 +35,13 @@ ...@@ -35,6 +35,13 @@
} }
} }
], ],
"reply_schema": {
"type": "object",
"description": "Map of fields and their values stored in the hash, or an empty list when key does not exist. In RESP2 this is returned as a flat array.",
"additionalProperties": {
"type": "string"
}
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -35,6 +35,10 @@ ...@@ -35,6 +35,10 @@
} }
} }
], ],
"reply_schema": {
"type": "integer",
"description": "The value of the field after the increment operation."
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -35,6 +35,10 @@ ...@@ -35,6 +35,10 @@
} }
} }
], ],
"reply_schema": {
"type": "string",
"description": "The value of the field after the increment operation."
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -35,6 +35,14 @@ ...@@ -35,6 +35,14 @@
} }
} }
], ],
"reply_schema": {
"type": "array",
"description": "List of fields in the hash, or an empty list when the key does not exist.",
"uniqueItems": true,
"items": {
"type": "string"
}
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -32,6 +32,10 @@ ...@@ -32,6 +32,10 @@
} }
} }
], ],
"reply_schema": {
"type": "integer",
"description": "Number of the fields in the hash, or 0 when the key does not exist."
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment