code | type | title | description |
---|---|---|---|
false |
page |
rename |
MemoryStorage:rename |
Renames a key to newkey
. If newkey
already exists, it is overwritten.
Arguments | Type | Description |
---|---|---|
key |
string | Key identifier |
newkey |
string | New key identifier |
options |
JSON Object | Optional parameters |
callback |
function | Callback |
Option | Type | Description | Default |
---|---|---|---|
queuable |
boolean | Make this request queuable or not | true |
Returns the MemoryStorage
object to allow chaining.
Returns null if successful.
<<< ./snippets/rename-1.js