Syntax
Parameters
None.Return value
A formatted multi-line string. The output is grouped into three sections: server metadata, key statistics, and hash table internals.Field reference
ServerRadishDB version number.
Number of seconds since the RadishDB process started.
Number of keys currently tracked by the hash table (
ht->count). May include keys that have logically expired but have not yet been passively swept.Number of keys that have a non-zero
expires_at value — that is, keys created with the EX option.Number of keys whose
expires_at is in the past (logically expired) but that have not yet been removed from memory.Total number of buckets allocated in the hash table. The initial size is 8 and doubles on each resize.
Ratio of
Keys / Buckets. A load factor approaching or exceeding 1.0 indicates that a resize is imminent or overdue.Number of times the hash table has been grown since the process started.
Length of the longest bucket chain. A value greater than 3–4 may indicate a poor hash distribution or a very high load factor.
Examples
BENCH run:
Notes
The
Expired keys count may be greater than zero even when all keys appear accessible. These are keys that have passed their TTL but have not yet been touched by a GET or TTL call to trigger passive removal.INFO is read-only and has no side effects. It does not trigger expiry sweeps or modify any state.Other utility commands
These commands have no additional parameters and are self-explanatory.HELP
Prints the full list of supported commands with brief descriptions.EXIT / QUIT
Terminates the current session. In REPL mode, the process exits cleanly. In TCP server mode, the connection is closed.QUIT is an alias for EXIT.