MCPcopy
hub / github.com/redis/go-redis / Monitor

Method Monitor

commands.go:816–820  ·  view source on GitHub ↗

* Monitor - represents a Redis MONITOR command, allowing the user to capture and process all commands sent to a Redis server. This mimics the behavior of MONITOR in the redis-cli. Notes: - Using MONITOR blocks the connection to the server for itself. It needs a dedicated connection - The user shoul

(ctx context.Context, ch chan string)

Source from the content-addressed store, hash-verified

814See further: Redis MONITOR command: https://redis.io/commands/monitor
815*/
816func (c cmdable) Monitor(ctx context.Context, ch chan string) *MonitorCmd {
817 cmd := newMonitorCmd(ctx, ch)
818 _ = c(ctx, cmd)
819 return cmd
820}

Callers 2

monitor_test.goFile · 0.45
TestMonitorCommandFunction · 0.45

Calls 1

newMonitorCmdFunction · 0.85

Tested by 1

TestMonitorCommandFunction · 0.36