Back to Redis

UNWATCH

content/commands/unwatch.md

latest1017 B
Original Source

Flushes all the previously watched keys for a transaction.

If you call [EXEC]({{< relref "/commands/exec" >}}) or [DISCARD]({{< relref "/commands/discard" >}}), there's no need to manually call UNWATCH.

Redis Software and Redis Cloud compatibility

| 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> | |

Return information

{{< multitabs id="unwatch-return-info" tab1="RESP2" tab2="RESP3" >}}

Simple string reply: OK.

-tab-sep-

Simple string reply: OK.

{{< /multitabs >}}