Tagged articles
3 articles
Page 1 of 1
Deepin Linux
Deepin Linux
Jul 10, 2025 · Fundamentals

Mastering LRUCache: How to Build a High‑Performance Cache in C++

Explore the principles behind Least Recently Used (LRU) caching, understand why it outperforms FIFO and LFU strategies, and follow a step‑by‑step C++ implementation using hash tables and doubly linked lists, complete with detailed code, testing, and performance optimization tips.

CCacheData Structure
0 likes · 24 min read
Mastering LRUCache: How to Build a High‑Performance Cache in C++
Java Captain
Java Captain
Nov 23, 2019 · Fundamentals

Understanding LinkedHashMap Order and LRU Cache Implementation in Java

LinkedHashMap extends HashMap by maintaining a doubly linked list to preserve insertion or access order, allowing optional LRU cache behavior via the accessOrder flag, and its source code shows how entries are linked, reordered on get, and how to override removeEldestEntry for eviction.

AccessOrderDataStructureHashMap
0 likes · 8 min read
Understanding LinkedHashMap Order and LRU Cache Implementation in Java
Meituan Technology Team
Meituan Technology Team
Dec 20, 2018 · Backend Development

Design and Performance Optimization of LruCache in Meituan DSP System

Meituan’s DSP system boosted high‑QPS ad serving performance by layering an LRU cache in front of Redis, then adding time‑based eviction, sharding the cache into HashLruCache instances to cut lock contention, and employing a zero‑copy, reference‑counted design, ultimately cutting average latency to about 20 % of the original and similarly reducing 99.9th‑percentile delays.

HashLruCacheLRUCacheMeituan DSP
0 likes · 15 min read
Design and Performance Optimization of LruCache in Meituan DSP System