MONITOR

Streams observed command activity to the connection.

Server & administration · Example verified

Syntax covered here

MONITOR

The case uses a dedicated monitor connection and verifies that it receives a SET issued on another connection.

Tested example & replies

Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.

# connection: monitor
> MONITOR
"OK"
# connection: default
> SET observed value
"OK"
# connection: monitor
# receive pushed message
"1792663957.278245 [0 127.0.0.1:43290] \"SET\" \"observed\" \"value\""