diff --git a/core/commands.json b/core/commands.json index 502a7338..7936a695 100644 --- a/core/commands.json +++ b/core/commands.json @@ -282,6 +282,38 @@ "since": "1.0.0", "group": "keys" }, + "RENAME": { + "summary": "Rename a key to be stored under a different name.", + "complexity": "O(1)", + "arguments": [ + { + "name": "key", + "type": "string" + }, + { + "name": "newkey", + "type": "string" + } + ], + "since": "1.14.5", + "group": "keys" + }, + "RENAMENX": { + "summary": "Rename a key to be stored under a different name, if a new key does not exist.", + "complexity": "O(1)", + "arguments": [ + { + "name": "key", + "type": "string" + }, + { + "name": "newkey", + "type": "string" + } + ], + "since": "1.14.5", + "group": "keys" + }, "KEYS": { "summary": "Finds all keys matching the given pattern", "complexity": "O(N) where N is the number of keys in the database", @@ -1557,7 +1589,7 @@ }, "EVAL":{ "summary": "Evaluates a Lua script", - "complecxity": "Depends on the evaluated script", + "complexity": "Depends on the evaluated script", "arguments": [ { "name": "script", @@ -1585,7 +1617,7 @@ }, "EVALSHA":{ "summary": "Evaluates a Lua script cached on the server by its SHA1 digest", - "complecxity": "Depends on the evaluated script", + "complexity": "Depends on the evaluated script", "arguments": [ { "name": "sha1", @@ -1613,7 +1645,7 @@ }, "EVALRO":{ "summary": "Evaluates a read-only Lua script", - "complecxity": "Depends on the evaluated script", + "complexity": "Depends on the evaluated script", "arguments": [ { "name": "script", @@ -1641,7 +1673,7 @@ }, "EVALROSHA":{ "summary": "Evaluates a read-only Lua script cached on the server by its SHA1 digest", - "complecxity": "Depends on the evaluated script", + "complexity": "Depends on the evaluated script", "arguments": [ { "name": "script", @@ -1669,7 +1701,7 @@ }, "EVALNA":{ "summary": "Evaluates a Lua script in a non-atomic fashion", - "complecxity": "Depends on the evaluated script", + "complexity": "Depends on the evaluated script", "arguments": [ { "name": "script", @@ -1697,7 +1729,7 @@ }, "EVALNASHA":{ "summary": "Evaluates, in a non-atomic fashion, a Lua script cached on the server by its SHA1 digest", - "complecxity": "Depends on the evaluated script", + "complexity": "Depends on the evaluated script", "arguments": [ { "name": "sha1",