Prerequisites
- GCC 13+ (or a compatible C compiler such as Clang)
- GNU Make
- A POSIX-compatible system (Linux or macOS)
Build steps
Build the binary
-Wall -Wextra -Werror -g:radishdb in the project root.Create the AOF directory
RadishDB writes its append-only log to
aof/radish.aof. Create the directory before the first run:Running modes
REPL mode
Running./radishdb without flags launches the interactive REPL:
CLEAR to clear the terminal. Type EXIT or QUIT to stop.
Server mode
Running./radishdb --server binds to 0.0.0.0:6379 and waits for a single TCP client connection:
CLI flags
| Flag | Short | Description |
|---|---|---|
--server | -s | Start in TCP server mode on port 6379 |
--version | -v | Print version (0.1) and exit |
--help | -h | Print usage information and exit |
Build with address sanitizer
For debugging memory errors, build with AddressSanitizer enabled:-fsanitize=address, which instruments every memory access. Run the resulting binary normally — ASAN prints a detailed report and aborts on any heap overflow, use-after-free, or memory leak.
ASAN builds are significantly slower than release builds and should not be used in production. Use them during development to catch memory bugs early.