content/commands/rpushx.md
Inserts specified values at the tail of the list stored at key, only if key
already exists and holds a list.
In contrary to [RPUSH]({{< relref "/commands/rpush" >}}), no operation will be performed when key does not yet
exist.
{{% redis-cli %}} RPUSH mylist "Hello" RPUSHX mylist "World" RPUSHX myotherlist "World" LRANGE mylist 0 -1 LRANGE myotherlist 0 -1 {{% /redis-cli %}}
| Redis Software | Redis Cloud | <span style="min-width: 9em; display: table-cell">Notes</span> | |:----------------------|:-----------------|:------| | <span title="Supported">✅ Standard</span> <span title="Supported"><nobr>✅ Active-Active</nobr></span> | <span title="Supported">✅ Standard</span> <span title="Supported"><nobr>✅ Active-Active</nobr></span> | |
{{< multitabs id="rpushx-return-info" tab1="RESP2" tab2="RESP3" >}}
Integer reply: the length of the list after the push operation.
-tab-sep-
Integer reply: the length of the list after the push operation.
{{< /multitabs >}}