PING
Tests that the connection is alive. Use it to verify that Cache-Pot is reachable before issuing other commands. Syntax:PING [message]
Optional string to echo back. When omitted, the server returns
PONG.PONG, or the provided message as a bulk string.
ECHO
Echoes a message back to the client. Useful for debugging connection pipelines and round-trip latency measurements. Syntax:ECHO message
The string to return.
AUTH
Authenticates your connection with the server password. You must sendAUTH as the first command after connecting when Cache-Pot is started with the --auth flag.
Syntax: AUTH password
The password configured via the
--auth startup flag.OK on success. Returns WRONGPASS invalid username-password pair if the password is incorrect, or an error if no password is configured on the server.
SELECT
Selects the active database by index. Cache-Pot is single-database in this release, so only index0 is accepted.
Syntax: SELECT index
The database index to select. Must be
0.OK for index 0; an error for any other value.
QUIT
Closes the current client connection gracefully. The server sends a finalOK reply before tearing down the connection.
Syntax: QUIT
OK, then closes the TCP connection.
COMMAND
Returns information about the commands registered in Cache-Pot. TheCOUNT subcommand is the most useful variant and is what most Redis clients issue automatically on first connect.
Syntax: COMMAND [COUNT]
When provided, returns the total number of registered commands as an integer.
COUNT is specified; an empty array otherwise.
COMMAND is implemented as a compatibility stub. Clients that issue COMMAND DOCS on startup (such as newer versions of redis-cli) receive an empty array and fall back to normal operation.INFO
Returns a bulk string containing server information and statistics, grouped into sections. Syntax:INFO
Server, Clients, Persistence, Keyspace, and Stats. The Stats section includes semantic cache hit and miss counters and the running hit ratio.
DBSIZE
Returns the number of live (non-expired) keys in the current database. Syntax:DBSIZE
FLUSHDB
Deletes every key in the current database immediately and synchronously. Syntax:FLUSHDB
OK.
FLUSHALL
Behaves identically toFLUSHDB. Because Cache-Pot is a single-database server, FLUSHALL and FLUSHDB delete the same keyspace.
Syntax: FLUSHALL
OK.
Both
FLUSHDB and FLUSHALL are provided so that any Redis client or migration script that calls either command works without modification.