This project implements a thread-safe LRU cache in modern C++ with:
- O(1)
get()andput()usingstd::unordered_mapandstd::list std::shared_mutexfor concurrent readers/writers- Google Test coverage for correctness and thread safety
- A simple TCP server exposing
SET key valueandGET keycommands - Google Benchmark harness for performance measurement
mkdir -p build
cd build
cmake ..
cmake --build . --config Releasectest --output-on-failure./cache_server 8080./lru_cache_benchmark