VeloxKV • Non-Blocking In-Memory Key-Value Store
High-performance, single-threaded, non-blocking key-value cache server in Modern C++17 with LRU eviction and threadless TTL.
-
Asynchronous Non-Blocking I/O: Built on POSIX
poll()event multiplexing on non-blocking sockets (O_NONBLOCK), handling thousands of concurrent client connections on a single OS thread with zero lock contention. -
Lock-Free Cache Engine: Engineered an integrated LRU eviction cache combining
std::unordered_mapfor O(1) hash lookups with a sentinel doubly-linked list for O(1) recency updates and zero virtual call indirection. - Threadless TTL Expiration: Designed a dual-mode expiration manager combining passive checks upon read access with active stochastic non-blocking sampling, eliminating background thread overhead.
-
Custom Text Protocol: Implemented a line-buffered streaming parser supporting
SET,GET,DEL,STATS(hits, misses, hit-rate, evictions), andINFOcommands.