# cpp-lru-cache **Repository Path**: Yang123321/cpp-lru-cache ## Basic Information - **Project Name**: cpp-lru-cache - **Description**: No description available - **Primary Language**: Unknown - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-12-29 - **Last Updated**: 2022-03-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README cpp-lru-cache ============= Simple and reliable LRU (Least Recently Used) cache for c++ based on hashmap and linkedlist. The library is header only, simple test and example are included. It includes standard components and very little own logics that guarantees reliability. Example: ``` /**Creates cache with maximum size of three. When the size in achieved every next element will replace the least recently used one */ cache::lru_cache cache(3); cache.put("one", "one"); cache.put("two", "two"); const std::string& from_cache = cache.get("two") ``` How to run tests: ``` mkdir build cd build cmake .. make check ```