Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
72935b9d
Commit
72935b9d
authored
Mar 21, 2023
by
Vitaly Arbuzov
Browse files
Merge branch 'unstable' into dict-split-by-slot
parents
6baf20af
6948daca
Changes
456
Hide whitespace changes
Inline
Side-by-side
src/commands/georadius_ro.json
View file @
72935b9d
...
@@ -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"
}
]
}
]
}
}
}
]
}
}
}
}
}
src/commands/georadiusbymember.json
View file @
72935b9d
...
@@ -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"
}
]
}
}
}
}
}
src/commands/georadiusbymember_ro.json
View file @
72935b9d
...
@@ -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"
}
]
}
]
}
}
}
]
}
}
}
}
}
src/commands/geosearch.json
View file @
72935b9d
...
@@ -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"
}
]
}
]
}
}
}
]
}
}
}
}
}
src/commands/geosearchstore.json
View file @
72935b9d
...
@@ -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"
}
}
}
}
}
src/commands/get.json
View file @
72935b9d
...
@@ -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"
,
...
...
src/commands/getbit.json
View file @
72935b9d
...
@@ -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"
,
...
...
src/commands/getdel.json
View file @
72935b9d
...
@@ -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"
,
...
...
src/commands/getex.json
View file @
72935b9d
...
@@ -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"
,
...
...
src/commands/getrange.json
View file @
72935b9d
...
@@ -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"
,
...
...
src/commands/getset.json
View file @
72935b9d
...
@@ -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"
,
...
...
src/commands/hdel.json
View file @
72935b9d
...
@@ -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"
,
...
...
src/commands/hello.json
View file @
72935b9d
...
@@ -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"
,
...
...
src/commands/hexists.json
View file @
72935b9d
...
@@ -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"
,
...
...
src/commands/hget.json
View file @
72935b9d
...
@@ -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"
,
...
...
src/commands/hgetall.json
View file @
72935b9d
...
@@ -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"
,
...
...
src/commands/hincrby.json
View file @
72935b9d
...
@@ -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"
,
...
...
src/commands/hincrbyfloat.json
View file @
72935b9d
...
@@ -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"
,
...
...
src/commands/hkeys.json
View file @
72935b9d
...
@@ -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"
,
...
...
src/commands/hlen.json
View file @
72935b9d
...
@@ -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"
,
...
...
Prev
1
…
4
5
6
7
8
9
10
11
12
…
23
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment