code | type | title | description |
---|---|---|---|
true |
page |
rpushx |
MemoryStorage:rpushx |
Appends the specified value at the end of a list, only if the key already exists and if it holds a list.
Arguments | Type | Description |
---|---|---|
key |
string | Key identifier |
value |
string | Value to add at the end of the list |
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 an integer containing the updated number of items in the list.
<<< ./snippets/rpushx-1.php
Callback response:
4