Building a lite Redis Server in C++ with the same operations and support of the original Redis.
You can connect to this server using the official Redis CLI.
redis-cli -p 6379
127.0.0.1:6379> SET user_1 "Kevin"
OK
127.0.0.1:6379> GET user_1
"Kevin"
- Implements the Redis Serialization Protocol (RESP) for I/O
- Supports core
GETandSETcommands along withEXIST,DEL,FLUSHALL - Stores data in
unordered_mapfor O(1) access - Handles concurrency using a single-threaded event loop using
WSAPoll, mirroring the core design of Redis - Expiration/TTL functionality with lazy deletion
- Persistence with Append-Only File (AOF)
- using
redis-benchmark -h 127.0.0.1 -p 6379 -t set,get -n 100000 -q - SET: 74682.60 requests per second
- GET: 85910.65 requests per second
- Redis "SAVE" commands
- Using Redis Benchmark to performance test server