code | type | title | description |
---|---|---|---|
true |
page |
renamenx |
MemoryStorage:renamenx |
Renames a key to newkey
, only if newkey
does not already exist.
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 a boolean specifying if the operation was successful or not.
<<< ./snippets/renamenx-1.php
Callback response:
true