SkillAgentSearch skills...

Reddish

Reddish - a minimal Redis-like server written in C++

Install / Use

/learn @amitverma-cf/Reddish
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

reddish

reddish - a minimal Redis-like server written in C++17.

It supports:

  • string, list, and hash commands
  • RESP command parsing
  • multi-client TCP server
  • periodic and shutdown persistence (dump.reddish)

Build

Recommended (MSVC preset)

cmake --preset msvc-release
cmake --build --preset build-release

Binary:

  • build/msvc-release/output/reddish.exe

Generic CMake

cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build

Binary:

  • build/output/reddish
  • build/output/reddish.exe

Run

./build/output/reddish

Or with custom port:

./build/output/reddish 6389

Documentation

Generate API docs:

cmake --preset msvc-release
cmake --build build/msvc-release --target docs

Output:

  • docs/html/index.html

Theme:

  • doxygen-awesome-css (fetched by CMake during configure)

Project layout

  • src/NetworkApi.hpp / src/NetworkApi.cpp: cross-platform socket helpers
  • src/Server.hpp / src/Server.cpp: TCP accept loop and client thread handling
  • src/CommandHandler.hpp / src/CommandHandler.cpp: command parsing and dispatch
  • src/Database.hpp / src/Database.cpp: in-memory storage and persistence
  • src/main.cpp: startup and background persistence thread

Notes

  • Build system is CMake-based; use CMakePresets.json for local setup.
  • Threads::Threads is intentionally linked for portable thread support.
View on GitHub
GitHub Stars5
CategoryDevelopment
Updated1mo ago
Forks0

Languages

C++

Security Score

70/100

Audited on Mar 1, 2026

No findings