Skip to content

prathamjaiswal27/in-memory-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LRU Cache Project

This project implements a thread-safe LRU cache in modern C++ with:

  • O(1) get() and put() using std::unordered_map and std::list
  • std::shared_mutex for concurrent readers/writers
  • Google Test coverage for correctness and thread safety
  • A simple TCP server exposing SET key value and GET key commands
  • Google Benchmark harness for performance measurement

Build

mkdir -p build
cd build
cmake ..
cmake --build . --config Release

Run tests

ctest --output-on-failure

Run server

./cache_server 8080

Benchmark

./lru_cache_benchmark

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors