-
Notifications
You must be signed in to change notification settings - Fork 23.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix reply schema for hfe related commands (#13238)
- Loading branch information
Showing
10 changed files
with
496 additions
and
456 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,83 +1,85 @@ | ||
{ | ||
"HEXPIRETIME": { | ||
"summary": "Returns the expiration time of a hash field as a Unix timestamp, in seconds.", | ||
"complexity": "O(N) where N is the number of arguments to the command", | ||
"group": "hash", | ||
"since": "8.0.0", | ||
"arity": -4, | ||
"function": "hexpiretimeCommand", | ||
"history": [], | ||
"command_flags": [ | ||
"READONLY", | ||
"FAST" | ||
], | ||
"acl_categories": [ | ||
"HASH" | ||
], | ||
"key_specs": [ | ||
{ | ||
"flags": [ | ||
"RO", | ||
"ACCESS" | ||
], | ||
"begin_search": { | ||
"index": { | ||
"pos": 1 | ||
"summary": "Returns the expiration time of a hash field as a Unix timestamp, in seconds.", | ||
"complexity": "O(N) where N is the number of arguments to the command", | ||
"group": "hash", | ||
"since": "8.0.0", | ||
"arity": -4, | ||
"function": "hexpiretimeCommand", | ||
"history": [], | ||
"command_flags": [ | ||
"READONLY", | ||
"FAST" | ||
], | ||
"acl_categories": [ | ||
"HASH" | ||
], | ||
"key_specs": [ | ||
{ | ||
"flags": [ | ||
"RO", | ||
"ACCESS" | ||
], | ||
"begin_search": { | ||
"index": { | ||
"pos": 1 | ||
} | ||
}, | ||
"find_keys": { | ||
"range": { | ||
"lastkey": 0, | ||
"step": 1, | ||
"limit": 0 | ||
} | ||
} | ||
} | ||
}, | ||
"find_keys": { | ||
"range": { | ||
"lastkey": 0, | ||
"step": 1, | ||
"limit": 0 | ||
} | ||
} | ||
} | ||
], | ||
"reply_schema": { | ||
"oneOf": [ | ||
{ | ||
"description": "Key does not exist.", | ||
"type": "null" | ||
}, | ||
{ | ||
"description": "Array of results", | ||
"type": "array", | ||
"minItems": 1, | ||
"maxItems": 4294967295, | ||
"items": [ | ||
{ | ||
"description": "The field does not exist.", | ||
"const": -2 | ||
}, | ||
{ | ||
"description": "The field exists but has no associated expire.", | ||
"const": -1 | ||
}, | ||
{ | ||
"description": "Expiration Unix timestamp in seconds.", | ||
"type": "integer", | ||
"minimum": 1 | ||
} | ||
], | ||
"reply_schema": { | ||
"oneOf": [ | ||
{ | ||
"description": "Key does not exist.", | ||
"type": "null" | ||
}, | ||
{ | ||
"description": "Array of results", | ||
"type": "array", | ||
"minItems": 1, | ||
"maxItems": 4294967295, | ||
"items": { | ||
"oneOf": [ | ||
{ | ||
"description": "The field does not exist.", | ||
"const": -2 | ||
}, | ||
{ | ||
"description": "The field exists but has no associated expire.", | ||
"const": -1 | ||
}, | ||
{ | ||
"description": "Expiration Unix timestamp in seconds.", | ||
"type": "integer", | ||
"minimum": 1 | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"arguments": [ | ||
{ | ||
"name": "key", | ||
"type": "key", | ||
"key_spec_index": 0 | ||
}, | ||
{ | ||
"name": "numfields", | ||
"type": "integer" | ||
}, | ||
{ | ||
"name": "field", | ||
"type": "string", | ||
"multiple": true | ||
} | ||
] | ||
}, | ||
"arguments": [ | ||
{ | ||
"name": "key", | ||
"type": "key", | ||
"key_spec_index": 0 | ||
}, | ||
{ | ||
"name": "numfields", | ||
"type": "integer" | ||
}, | ||
{ | ||
"name": "field", | ||
"type": "string", | ||
"multiple": true | ||
} | ||
] | ||
} | ||
} |
Oops, something went wrong.