{ "HSETF": { "summary": "For each specified field value pair: set field to value and optionally set the field's remaining time to live / UNIX expiration timestamp in seconds / milliseconds", "complexity": "O(N) where N is the number of arguments to the command", "group": "hash", "since": "8.0.0", "arity": -6, "function": "hsetfCommand", "history": [], "command_flags": [ "WRITE", "DENYOOM", "FAST" ], "acl_categories": [ "HASH" ], "key_specs": [ { "flags": [ "RW", "UPDATE" ], "begin_search": { "index": { "pos": 1 } }, "find_keys": { "range": { "lastkey": 0, "step": 1, "limit": 0 } } } ], "reply_schema": { "oneOf": [ { "description": "Key does not exist and DC condition was given", "type": "null" }, { "description": "Array of field values when GETNEW/GETOLD is used", "type": "array", "minItems": 1, "maxItems": 4294967295, "items": { "oneOf": [ { "description": "Field value", "type": "string" }, { "description": "Field does not exist and couldn't create it (DCF not met)", "type": "null" } ] } }, { "description": "Array of results", "type": "array", "minItems": 1, "maxItems": 4294967295, "items": { "oneOf": [ { "description": "Cannot set field value. DOC/DOF condition not met.", "const": 0 }, { "description": "Set field value without updating TTL", "const": 1 }, { "description": "Set field value and updated TTL", "const": 3 } ] } } ] }, "arguments": [ { "name": "key", "type": "key", "key_spec_index": 0 }, { "name": "create key option", "optional": true, "type": "pure-token", "token": "DC" }, { "name": "create option", "type": "oneof", "optional": true, "arguments": [ { "name": "dcf", "type": "pure-token", "token": "DCF" }, { "name": "dof", "type": "pure-token", "token": "DOF" } ] }, { "name": "return option", "type": "oneof", "optional": true, "arguments": [ { "name": "getnew", "type": "pure-token", "token": "GETNEW" }, { "name": "getold", "type": "pure-token", "token": "GETOLD" } ] }, { "name": "condition", "type": "oneof", "optional": true, "arguments": [ { "name": "nx", "type": "pure-token", "token": "NX" }, { "name": "xx", "type": "pure-token", "token": "XX" }, { "name": "gt", "type": "pure-token", "token": "GT" }, { "name": "lt", "type": "pure-token", "token": "LT" } ] }, { "name": "expiration", "type": "oneof", "optional": true, "arguments": [ { "name": "seconds", "type": "integer", "token": "EX" }, { "name": "milliseconds", "type": "integer", "token": "PX" }, { "name": "unix-time-seconds", "type": "unix-time", "token": "EXAT" }, { "name": "unix-time-milliseconds", "type": "unix-time", "token": "PXAT" }, { "name": "keepttl", "type": "pure-token", "token": "KEEPTTL" } ] }, { "name": "FVS", "type": "string" }, { "name": "count", "type": "integer" }, { "name": "data", "type": "block", "multiple": true, "arguments": [ { "name": "field", "type": "string" }, { "name": "value", "type": "string" } ] } ] } }