Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
166 changes: 166 additions & 0 deletions hack/cmds/commands.json
Original file line number Diff line number Diff line change
Expand Up @@ -3087,6 +3087,172 @@
"since": "2.0.0",
"group": "hash"
},
"HGETDEL": {
"summary": "Returns the value of a field and deletes it from the hash",
"complexity": "O(N) where N is the number of specified fields",
"arguments": [
{
"name": "key",
"type": "key"
},
{
"name": "fields",
"type": "enum",
"enum": ["FIELDS"]
},
{
"name": "numfields",
"type": "integer"
},
{
"name": "field",
"type": "string",
"multiple": true
}
],
"since": "8.0.0",
"group": "hash"
},
"HGETEX": {
"summary": "Get the value of one or more fields of a given hash key, and optionally set their expiration.",
"complexity": "O(N) where N is the number of specified fields",
"arguments": [
{
"name": "key",
"type": "key"
},
{
"name": "expiration",
"type": "oneof",
"optional": true,
"arguments": [
{
"name": "EX",
"type": "integer",
"token": "EX"
},
{
"name": "PX",
"type": "integer",
"token": "PX"
},
{
"name": "EXAT",
"type": "unix-time",
"token": "EXAT"
},
{
"name": "PXAT",
"type": "unix-time",
"token": "PXAT"
},
{
"name": "PERSIST",
"type": "pure-token",
"token": "PERSIST"
}
]
},
{
"name": "fields",
"type": "enum",
"enum": ["FIELDS"]
},
{
"name": "numfields",
"type": "integer"
},
{
"name": "field",
"type": "string",
"multiple": true
}
],
"since": "8.0.0",
"group": "hash"
},
"HSETEX": {
"summary": "Set the value of one or more fields of a given hash key, and optionally set their expiration.",
"complexity": "O(N) where N is the number of fields being set.",
"arguments": [
{
"name": "key",
"type": "key",
"key_spec_index": 0
},
{
"name": "condition",
"type": "oneof",
"optional": true,
"arguments": [
{
"name": "fnx",
"type": "pure-token",
"token": "FNX"
},
{
"name": "fxx",
"type": "pure-token",
"token": "FXX"
}
]
},
{
"name": "expiration",
"type": "oneof",
"optional": true,
"arguments": [
{
"name": "EX",
"type": "integer",
"token": "EX"
},
{
"name": "PX",
"type": "integer",
"token": "PX"
},
{
"name": "EXAT",
"type": "unix-time",
"token": "EXAT"
},
{
"name": "PXAT",
"type": "unix-time",
"token": "PXAT"
},
{
"name": "KEEPTTL",
"type": "pure-token",
"token": "KEEPTTL"
}
]
},
{
"name": "fields",
"type": "enum",
"enum": ["FIELDS"]
},
{
"name": "numfields",
"type": "integer"
},
{
"name": [
"field",
"value"
],
"type": [
"string",
"string"
],
"multiple": true
}
],
"since": "8.0.0",
"group": "hash"
},
"HINCRBY": {
"summary": "Increment the integer value of a hash field by the given number",
"complexity": "O(1)",
Expand Down
2 changes: 1 addition & 1 deletion hack/cmds/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ func toGoType(paramType string) string {
return "string"
case "double":
return "float64"
case "integer", "posix time":
case "integer", "posix time", "unix-time":
return "int64"
case "unsigned integer":
return "uint64"
Expand Down
Loading
Loading