MONITOR, dig into slow queries with SLOWLOG, list or terminate active connections with CLIENT, and tune thresholds at runtime with CONFIG GET/SET — all without restarting the server.
MONITOR
Streams every command dispatched by the server to your current connection. Each line includes a timestamp, the source database index and client address, and the full command with arguments.AUTH passwords are automatically redacted.
Syntax: MONITOR
Send RESET or close the connection to stop the stream. The Profiler page in the Cache-Pot dashboard (http://localhost:8080) shows the same real-time data in your browser.
OK then an unbounded stream of bulk strings, one per dispatched command.
SLOWLOG GET
Returns the most recent entries from the slow query log — commands that exceeded the configuredslowlog-log-slower-than threshold.
Syntax: SLOWLOG GET [count]
Each entry contains the command ID, the Unix timestamp when it was run, the duration in microseconds, the full argument list, the client address, and the client name.
[id, timestamp_unix, duration_us, [cmd, arg, ...], client_addr, client_name].
SLOWLOG LEN
Returns the number of entries currently in the slow query log. Syntax:SLOWLOG LEN
SLOWLOG RESET
Clears all entries from the slow query log. Syntax:SLOWLOG RESET
OK.
The default slow query threshold is 10,000 µs (10 ms). Set it to
0 to log every command, or -1 to disable slow logging entirely. The default maximum number of retained entries is 128.CLIENT LIST
Returns a bulk string with one connected client per line. Each line contains space-separated fields:id, addr, name, age (seconds since connection opened), idle (seconds since last command), and cmd (last command issued).
Syntax: CLIENT LIST
CLIENT ID
Returns the integer ID of the current connection. Useful for targeting a specific connection withCLIENT KILL.
Syntax: CLIENT ID
CLIENT SETNAME / GETNAME
Assigns or retrieves a human-readable name for the current connection. Named connections are easier to identify inCLIENT LIST output and in MONITOR traces.
Syntax: CLIENT SETNAME name / CLIENT GETNAME
CLIENT SETNAME returns OK. CLIENT GETNAME returns the name as a bulk string, or an empty bulk string if no name has been set.
CLIENT KILL
Closes a specific connection by its ID. The target connection receives an error on its next read. Syntax:CLIENT KILL ID id
0 or 1).
CONFIG GET
Reads the current value of a runtime configuration parameter. Supports glob patterns to match multiple parameters at once. Syntax:CONFIG GET parameter
CONFIG SET
Updates a runtime configuration parameter without restarting the server. Syntax:CONFIG SET parameter value
Supported parameters:
| Parameter | Description | Default |
|---|---|---|
slowlog-log-slower-than | Threshold in microseconds. 0 logs everything; -1 disables. | 10000 |
slowlog-max-len | Maximum number of slow log entries to retain. | 128 |
OK on success, or an error if the parameter name is unknown or the value is invalid.
RESET
ExitsMONITOR mode and drops all pub/sub subscriptions on the current connection. Call this to return a connection to normal command mode without closing it.
Syntax: RESET
RESET.