Tagged articles
103 articles
Page 1 of 2
Code Wrench
Code Wrench
Jan 21, 2026 · Backend Development

Mastering Cache Eviction in Go: When and How to Use LRU

This article explains why naive cache eviction fails, why LRU is the go‑to strategy for many Go projects, and provides a production‑ready LRU implementation with detailed code, lock‑granularity tips, key design considerations, and scenarios where LRU is not suitable.

CacheGoLRU
0 likes · 9 min read
Mastering Cache Eviction in Go: When and How to Use LRU
java1234
java1234
Jan 20, 2026 · Databases

Understanding Redis Memory Eviction Strategies

Redis stores data in memory, so when usage reaches the maxmemory limit it triggers one of six eviction policies—noeviction, allkeys‑lru, volatile‑lru, allkeys‑random, volatile‑random, and volatile‑ttl—each suited to different scenarios, and can be set via redis.conf or CONFIG SET, as illustrated with a Java Jedis example.

JavaJedisLRU
0 likes · 6 min read
Understanding Redis Memory Eviction Strategies
Linux Kernel Journey
Linux Kernel Journey
Oct 27, 2025 · Fundamentals

Exploring eBPF‑Based Programmable Memory Management in the Linux Kernel

This article examines recent efforts to make Linux kernel memory management programmable with eBPF, covering BPF‑MM patches for mTHP order, cache‑ext’s customizable LRU, FetchBPF prefetch policies, and BPF OOM hooks, and discusses their design, implementation details, and performance impacts.

LRULinux kernelMemory Management
0 likes · 8 min read
Exploring eBPF‑Based Programmable Memory Management in the Linux Kernel
Code Wrench
Code Wrench
Oct 25, 2025 · Backend Development

Mastering Go Local Cache: TTL, Sharded LRU, Singleflight & Async Refresh

This article walks through a production‑grade Go local cache implementation, covering TTL and LRU fundamentals, sharded concurrency, singleflight protection, asynchronous refresh, capacity control, persistence, performance testing, and real‑world usage scenarios.

CacheGoLRU
0 likes · 9 min read
Mastering Go Local Cache: TTL, Sharded LRU, Singleflight & Async Refresh
Deepin Linux
Deepin Linux
Jul 15, 2025 · Fundamentals

Mastering LRU Cache: Theory, C++ Implementation, and Interview Strategies

This article explains the core principles of the Least Recently Used (LRU) cache algorithm, details its operation and complexity, provides a complete C++ implementation with line-by-line analysis, showcases test cases, and offers practical interview tips and extensions such as LFU and LRU‑K.

CCacheLRU
0 likes · 18 min read
Mastering LRU Cache: Theory, C++ Implementation, and Interview Strategies
dbaplus Community
dbaplus Community
Jul 14, 2025 · Databases

Why Full Table Scans Won’t Exhaust MySQL Server Memory

Even when scanning a 200 GB InnoDB table on a server with only 100 GB of RAM, MySQL does not consume all memory because it streams results using a limited net_buffer, employs socket send buffers, and InnoDB’s optimized LRU algorithm manages the buffer pool to prevent memory blow‑up.

Full Table ScanInnoDBLRU
0 likes · 12 min read
Why Full Table Scans Won’t Exhaust MySQL Server Memory
Tech Freedom Circle
Tech Freedom Circle
May 30, 2025 · Backend Development

Designing a Cache for 10 M MySQL Rows with Only 2 M Redis Slots – Meituan Interview Answer

The article analyzes a Meituan interview question about caching 10 million MySQL rows when Redis can store only 200 thousand rows, presenting a five‑step three‑tier cache architecture that separates cold and hot data, selects appropriate eviction policies, uses proactive hotspot detection, adds multi‑level defense, and employs both scheduled and real‑time pre‑heating, with performance numbers showing an 85% hit rate and 100 ms latency.

Cache DesignHotKeyLFU
0 likes · 29 min read
Designing a Cache for 10 M MySQL Rows with Only 2 M Redis Slots – Meituan Interview Answer
Linux Kernel Journey
Linux Kernel Journey
Mar 23, 2025 · Fundamentals

Efficient Dynamic Memory Reclamation Techniques in Linux

The article provides an in‑depth technical analysis of Linux’s memory reclamation system, covering zones, watermarks, page flags, LRU lists, the shrink_zone workflow, kswapd, direct reclaim, OOM handling, page‑cache structures, and practical tuning tips for optimal performance.

LRULinuxSwap
0 likes · 97 min read
Efficient Dynamic Memory Reclamation Techniques in Linux
Cognitive Technology Team
Cognitive Technology Team
Mar 3, 2025 · Databases

Understanding Redis Memory Management: maxmemory Configuration and Eviction Policies

This article explains how Redis uses memory as a cache, details the maxmemory setting and its configuration methods, describes various eviction policies—including LRU, LFU, and random strategies—and outlines expiration handling, replication considerations, and best‑practice recommendations for stable high‑load deployments.

LFULRUeviction policy
0 likes · 10 min read
Understanding Redis Memory Management: maxmemory Configuration and Eviction Policies
Lobster Programming
Lobster Programming
Dec 16, 2024 · Databases

Why MySQL Never Runs Out of Memory During Massive Full Table Scans

Even when scanning tables with tens of millions of rows, MySQL avoids out‑of‑memory crashes by streaming data in small 16 KB net buffers, using socket buffers, and employing an improved LRU algorithm that isolates cold data in the buffer pool’s old generation.

Full Table ScanLRUbuffer pool
0 likes · 5 min read
Why MySQL Never Runs Out of Memory During Massive Full Table Scans
Python Programming Learning Circle
Python Programming Learning Circle
Nov 14, 2024 · Fundamentals

Using Python Dictionaries as a Cache Mechanism

This article explains how Python dictionaries can serve as an efficient caching mechanism, covering basic dictionary concepts, common operations, simple cache examples, advanced techniques like LRU cache implementation, and practical use cases such as caching API responses, with complete code snippets.

CacheLRUdictionary
0 likes · 8 min read
Using Python Dictionaries as a Cache Mechanism
Linux Kernel Journey
Linux Kernel Journey
Sep 14, 2024 · Fundamentals

Understanding Linux Page Reclaim: LRU, Second‑Chance, and Direct Reclaim Walkthrough

This article explains Linux's page reclamation mechanisms, covering the LRU list algorithm, the second‑chance method with PG_active and PG_referenced flags, and the direct reclaim path triggered by alloc_page, including the role of kswapd, waiting queues, and key kernel functions such as lru_cache_add, mark_page_accessed, try_to_free_pages, and throttle_direct_reclaim.

LRULinuxMemory Management
0 likes · 12 min read
Understanding Linux Page Reclaim: LRU, Second‑Chance, and Direct Reclaim Walkthrough
Senior Tony
Senior Tony
Jul 15, 2024 · Databases

Mastering Redis maxmemory‑policy: How LRU, LFU and Other Eviction Strategies Work

This article explains how Redis handles memory exhaustion by configuring maxmemory and maxmemory-policy, detailing each eviction strategy (noeviction, volatile‑lru, volatile‑lfu, volatile‑ttl, volatile‑random, allkeys‑lru, allkeys‑lfu, allkeys‑random), their implementation details, and the underlying approximate LRU algorithm.

LFULRUdatabases
0 likes · 8 min read
Mastering Redis maxmemory‑policy: How LRU, LFU and Other Eviction Strategies Work
Deepin Linux
Deepin Linux
Jun 6, 2024 · Fundamentals

Linux Page Reclaim Mechanism and PFRA Design Overview

This article explains Linux's page reclamation process, describing how the kernel recovers memory under pressure using PFRA, LRU algorithms, direct reclaim, compaction, and OOM handling, and provides detailed source code analysis of the involved kernel functions.

LRULinuxPFRA
0 likes · 54 min read
Linux Page Reclaim Mechanism and PFRA Design Overview
dbaplus Community
dbaplus Community
Mar 27, 2024 · Databases

How Redis Handles Full Cache: Memory Eviction Policies Explained

When Redis memory reaches its configured maxmemory limit, it triggers a set of eviction policies—such as noeviction, allkeys‑lru, volatile‑lfu, and others—to decide which keys to discard, and this article explains how to view, configure, and understand each strategy.

LFULRUdatabase
0 likes · 9 min read
How Redis Handles Full Cache: Memory Eviction Policies Explained
MaGe Linux Operations
MaGe Linux Operations
Dec 14, 2023 · Backend Development

How Redis Uses 24‑Bit Counters for Efficient LRU Caching

This article explores how counters, especially 24‑bit timestamps, are employed in Redis’s LRU eviction algorithm and other memory‑constrained scenarios, detailing implementation tricks, precision trade‑offs, and practical code examples for efficient cyclic counters and compact storage techniques.

C programmingCountersLRU
0 likes · 12 min read
How Redis Uses 24‑Bit Counters for Efficient LRU Caching
政采云技术
政采云技术
Oct 25, 2023 · Databases

Redis Memory Management: Eviction and Expiration Strategies Explained

This article provides a comprehensive overview of Redis memory management, detailing how maxmemory limits trigger various eviction policies, explaining the internal freeMemoryIfNeeded algorithm, and describing expiration mechanisms—including active and lazy deletion—and offering guidance on selecting the appropriate eviction strategy for different workloads.

CacheExpirationLFU
0 likes · 18 min read
Redis Memory Management: Eviction and Expiration Strategies Explained
Top Architect
Top Architect
Oct 11, 2023 · Databases

Understanding Redis Memory Eviction Policies and Configuration

This article explains how Redis uses the maxmemory setting to trigger memory eviction, details the various eviction policies (including LRU and LFU), shows how to query and modify these settings with config commands, and briefly mentions promotional offers for a ChatGPT community.

LFULRUdatabases
0 likes · 10 min read
Understanding Redis Memory Eviction Policies and Configuration
Architect
Architect
Jul 19, 2023 · Databases

Understanding Redis LRU and LFU Cache Eviction Algorithms

This article explains the principles, implementation details, and trade‑offs of Redis’s LRU and LFU cache eviction algorithms, including their data structures, code snippets, configuration parameters, and practical guidance on choosing the appropriate strategy based on workload characteristics.

Cache EvictionLFULRU
0 likes · 13 min read
Understanding Redis LRU and LFU Cache Eviction Algorithms
vivo Internet Technology
vivo Internet Technology
Jul 5, 2023 · Databases

Implementation of Redis LRU and LFU Cache Eviction Algorithms

Redis implements approximate LRU and LFU eviction policies by sampling keys and using a compact 24‑bit field to store timestamps and counters, where LRU evicts the least recently accessed items and LFU evicts those with low, decay‑adjusted access frequency, each with trade‑offs for different workloads.

Cache EvictionLFULRU
0 likes · 13 min read
Implementation of Redis LRU and LFU Cache Eviction Algorithms
Open Source Linux
Open Source Linux
Jun 19, 2023 · Backend Development

Mastering Cache Design in Go: Concepts, APIs, and Concurrency

This article explains cache fundamentals, common use cases, design constraints, and a Go implementation that combines hash‑maps with doubly‑linked lists, LRU eviction, TTL handling, and mutex‑based concurrency control, providing practical code examples and deployment tips.

Backend DevelopmentCacheLRU
0 likes · 11 min read
Mastering Cache Design in Go: Concepts, APIs, and Concurrency
MaGe Linux Operations
MaGe Linux Operations
Mar 3, 2023 · Databases

How Redis Manages Memory Exhaustion: Expiration, Eviction, LRU & LFU

Redis uses key expiration commands, periodic scanning, and a combination of lazy and active deletion strategies, and when memory is full it applies one of eight eviction policies—including refined LRU and LFU algorithms with sampling and decay mechanisms—to decide which keys to discard.

Eviction PoliciesKey ExpirationLFU
0 likes · 13 min read
How Redis Manages Memory Exhaustion: Expiration, Eviction, LRU & LFU
HelloTech
HelloTech
Dec 15, 2022 · Backend Development

Optimization of Reverse Geocoding Service: Caching, GeoHash, and LRU Strategies

By eliminating unnecessary reverse‑geocode calls, aggregating nearby coordinates with GeoHash, and employing a multi‑layer LRU‑K cache with time‑ and access‑count eviction, the Hellobike map team cut daily requests from 200‑300 million to 20‑30 million while adding fallback and monitoring mechanisms.

BackendGeoHashLRU
0 likes · 13 min read
Optimization of Reverse Geocoding Service: Caching, GeoHash, and LRU Strategies
Top Architect
Top Architect
Dec 9, 2022 · Backend Development

In-Memory Caching with Guava LoadingCache: Design, Algorithms, and Best Practices

This article explains the principles and practical implementation of in‑memory caching using Guava’s LoadingCache, covering cache initialization parameters, put and loading strategies, eviction policies, common algorithms such as LRU, LFU, FIFO, and tips for avoiding memory issues and monitoring cache performance.

GuavaJavaLRU
0 likes · 15 min read
In-Memory Caching with Guava LoadingCache: Design, Algorithms, and Best Practices
Top Architect
Top Architect
Nov 8, 2022 · Backend Development

Understanding In-Memory Caching with Guava LoadingCache and LRU Implementation in Java

This article explains the fundamentals of in‑memory caching, compares it with buffering, introduces Guava's LoadingCache configuration and operations, discusses eviction strategies, illustrates common cache algorithms (FIFO, LRU, LFU), provides a simple LRU implementation using LinkedHashMap, and offers practical guidelines for when and how to apply caching to improve backend performance.

GuavaJavaLRU
0 likes · 14 min read
Understanding In-Memory Caching with Guava LoadingCache and LRU Implementation in Java
dbaplus Community
dbaplus Community
Oct 26, 2022 · Databases

Mastering Redis Expiration and Eviction: LRU vs LFU Explained

This article explains how Redis handles key expiration, the three expiration deletion strategies, the eight memory‑eviction policies configurable via maxmemory, and the inner workings of Redis's LRU and LFU algorithms, including sampling, lru_clock, and counter decay mechanisms.

Eviction PoliciesLFULRU
0 likes · 13 min read
Mastering Redis Expiration and Eviction: LRU vs LFU Explained
Top Architect
Top Architect
Oct 23, 2022 · Backend Development

In‑Memory Cache Design with Guava LoadingCache, Eviction Strategies, and LRU Implementation

This article explains the fundamentals of in‑memory caching, introduces Guava's LoadingCache API, discusses cache sizing, eviction policies, common algorithms like FIFO, LRU, LFU, shows a simple LRU implementation using LinkedHashMap, and provides practical guidance on when and how to apply caching for performance optimization.

BackendGuavaJava
0 likes · 14 min read
In‑Memory Cache Design with Guava LoadingCache, Eviction Strategies, and LRU Implementation
Top Architect
Top Architect
Sep 27, 2022 · Databases

Configuring Redis Memory Size and Eviction Policies (LRU and LFU)

Redis caches can fill up, requiring memory eviction; this guide explains how to set Redis maxmemory (e.g., 5GB), choose appropriate eviction policies such as allkeys-lru or allkeys-lfu, and details the underlying LRU and LFU algorithms and their configuration commands.

LFULRUMemory Management
0 likes · 7 min read
Configuring Redis Memory Size and Eviction Policies (LRU and LFU)
IT Services Circle
IT Services Circle
Jun 10, 2022 · Fundamentals

Page Replacement Algorithms: OPT, FIFO, LRU, CLOCK, and LFU

This article reviews virtual memory concepts and explains five page replacement algorithms—Optimal (OPT), First‑In‑First‑Out (FIFO), Least Recently Used (LRU), CLOCK (including a simple and improved version), and Least Frequently Used (LFU)—detailing their principles, operation, advantages, drawbacks, and illustrative examples.

FIFOLRUOPT
0 likes · 14 min read
Page Replacement Algorithms: OPT, FIFO, LRU, CLOCK, and LFU
IT Services Circle
IT Services Circle
May 28, 2022 · Backend Development

Understanding Redis Eviction Policies and Implementing LRU Cache in Java

This article explains Redis memory eviction strategies, including volatile and allkeys policies, details the approximate LRU algorithm Redis uses, and provides Java implementations of an LRU cache using LinkedHashMap and a custom doubly‑linked list, complete with code examples and configuration settings.

Backend DevelopmentCache EvictionJava
0 likes · 7 min read
Understanding Redis Eviction Policies and Implementing LRU Cache in Java
IT Services Circle
IT Services Circle
Apr 25, 2022 · Databases

Understanding Redis Memory Eviction Strategies

This article explains how Redis handles memory pressure using configurable maxmemory limits and a variety of eviction policies—including noeviction, volatile‑lru, volatile‑lfu, allkeys‑lru, and allkeys‑random—while offering guidance on selecting appropriate policies and sizing cache capacity for optimal performance.

Eviction PoliciesLFULRU
0 likes · 7 min read
Understanding Redis Memory Eviction Strategies
ByteFE
ByteFE
Mar 18, 2022 · Frontend Development

Curated Technical Articles and Resources for Frontend Development

This collection highlights recent technical articles and resources covering Vue 3.0, ESLint fundamentals, defensive CSS techniques, low‑code system design, React project setup, Nest.js with TypeORM, and an introduction to the LRU caching algorithm, offering practical insights for frontend developers.

CSSESLintLRU
0 likes · 4 min read
Curated Technical Articles and Resources for Frontend Development
Top Architect
Top Architect
Mar 12, 2022 · Databases

Understanding Redis Eviction Policies and Memory Management

This article explains Redis's in‑memory database architecture, detailing data locality, various eviction policies such as LRU, LFU, random and TTL, their configuration via maxmemory settings, and provides code examples of the eviction process and memory‑freeing functions.

LFULRUMemory Management
0 likes · 17 min read
Understanding Redis Eviction Policies and Memory Management
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Mar 4, 2022 · Operations

Understanding Linux mlock and munlock: Memory Locking and Reclamation Mechanisms on arm64

On arm64 Linux kernels (e.g., 5.10.27), the mlock system call marks VMAs with VM_LOCKED, forces page faults, sets the PG_mlocked flag and moves pages into the unevictable LRU so they cannot be reclaimed, while munlock clears these flags and returns pages to regular LRU lists, guaranteeing resident memory for latency‑sensitive applications.

KernelLRULinux
0 likes · 7 min read
Understanding Linux mlock and munlock: Memory Locking and Reclamation Mechanisms on arm64
JavaEdge
JavaEdge
Jan 21, 2022 · Databases

Can MySQL Handle a 100 GB Full Table Scan Without Crashing?

This article explains why a MySQL query that scans a 100‑gigabyte table and returns millions of rows does not exhaust server memory, describing the net_buffer mechanism, socket send buffer behavior, InnoDB buffer‑pool management, and the improved LRU algorithm used to keep large scans from degrading overall performance.

Full Table ScanInnoDBLRU
0 likes · 8 min read
Can MySQL Handle a 100 GB Full Table Scan Without Crashing?
Programmer DD
Programmer DD
Nov 15, 2021 · Fundamentals

Why Cache Matters: Understanding Placement, Replacement, and Consistency

This article explores the role of cache in computer architecture, covering why caches are needed, how data is placed and retrieved, various replacement policies, write strategies, and consistency protocols such as MESI, while illustrating concepts with diagrams and code examples.

CacheCache ConsistencyLRU
0 likes · 12 min read
Why Cache Matters: Understanding Placement, Replacement, and Consistency
Liangxu Linux
Liangxu Linux
Aug 16, 2021 · Fundamentals

Why CPUs Need Cache: A Deep Dive into Cache Mechanics and Coherence

This article explains the motivation behind CPU caches, their classification, placement and lookup methods, replacement and write policies, and coherence protocols, providing a comprehensive overview of cache fundamentals for modern computer architectures.

LRUMemory Hierarchycache coherence
0 likes · 14 min read
Why CPUs Need Cache: A Deep Dive into Cache Mechanics and Coherence
Java Interview Crash Guide
Java Interview Crash Guide
Aug 12, 2021 · Databases

Mastering Redis Expiration and Eviction: 8 Strategies, LRU & LFU Explained

Redis handles key expiration using commands like EXPIRE, PEXPIRE, EXPIREAT, and PEXPIREAT, offers TTL queries, and employs three deletion strategies—timed, lazy, and periodic scanning—while its eight eviction policies (e.g., volatile‑lru, allkeys‑lfu, noeviction) and refined LRU/LFU algorithms manage memory pressure efficiently.

Eviction PoliciesExpirationLFU
0 likes · 14 min read
Mastering Redis Expiration and Eviction: 8 Strategies, LRU & LFU Explained
ITPUB
ITPUB
Apr 15, 2021 · Databases

Master Redis Memory Limits and Eviction: Configuring Maxmemory, LRU & LFU Explained

This article explains how to set Redis's maximum memory usage via configuration files or runtime commands, details all built‑in eviction policies, demonstrates retrieving and changing these policies, and dives into the LRU and LFU algorithms—including Java sample code and Redis's approximate LRU implementation.

LFULRUdatabases
0 likes · 11 min read
Master Redis Memory Limits and Eviction: Configuring Maxmemory, LRU & LFU Explained
DeWu Technology
DeWu Technology
Mar 5, 2021 · Frontend Development

Dynamic Tab Caching with Vue keep-alive

Vue’s keep-alive component enables dynamic tab caching in B‑end applications by storing component VNodes in an internal LRU cache, preserving state across route switches, supporting include/exclude patterns, router‑meta flags, Vuex‑driven lists, and custom strategies for nested routes to prevent stale data and excess API calls.

Keep-AliveLRURouter
0 likes · 11 min read
Dynamic Tab Caching with Vue keep-alive
Architecture Digest
Architecture Digest
Feb 28, 2021 · Databases

Understanding Redis Memory Limits and Eviction Policies

This article explains how to configure Redis's maximum memory, describes the various eviction policies—including noeviction, allkeys‑lru, volatile‑lru, random and ttl strategies—covers how to query and set these policies, and details the LRU and LFU algorithms used by Redis for cache management.

LFULRUMemory
0 likes · 9 min read
Understanding Redis Memory Limits and Eviction Policies
Java Backend Technology
Java Backend Technology
Feb 26, 2021 · Databases

Redis Memory Limits & Eviction: LRU, LFU, and Config Guide

Learn how to set Redis's maximum memory usage, understand its various eviction policies—including noeviction, allkeys‑lru, volatile‑lru, allkeys‑random, volatile‑random, volatile‑ttl, and the newer LFU strategies—plus see Java code examples and insights into approximate LRU implementation.

Eviction PoliciesJavaLFU
0 likes · 13 min read
Redis Memory Limits & Eviction: LRU, LFU, and Config Guide
Architect
Architect
Feb 25, 2021 · Databases

Redis Expiration, Eviction Policies, and LRU/LFU Algorithms

This article explains how Redis handles key expiration, the commands for setting TTL, the three expiration strategies, the eight eviction policies, and the internal LRU and LFU algorithms, including their implementation details, sampling techniques, and configuration parameters for memory management.

Eviction PoliciesLFULRU
0 likes · 13 min read
Redis Expiration, Eviction Policies, and LRU/LFU Algorithms
Code Ape Tech Column
Code Ape Tech Column
Feb 25, 2021 · Databases

Understanding Redis Expiration and Eviction Policies

This article explains how Redis handles key expiration, the commands for setting TTL, the three expiration strategies, the eight memory‑eviction policies, and the internal LRU and LFU algorithms used to manage hot data when memory is exhausted.

ExpirationLFULRU
0 likes · 12 min read
Understanding Redis Expiration and Eviction Policies
Top Architect
Top Architect
Feb 24, 2021 · Databases

Understanding Redis Memory Limits and Eviction Policies (LRU, LFU)

This article explains how to set Redis's maximum memory usage, configure eviction policies such as noeviction, allkeys‑lru, volatile‑lru, allkeys‑random, and LFU, demonstrates command‑line and configuration‑file methods, and provides a Java implementation of an LRU cache.

JavaLFULRU
0 likes · 12 min read
Understanding Redis Memory Limits and Eviction Policies (LRU, LFU)
Architect's Tech Stack
Architect's Tech Stack
Aug 18, 2020 · Databases

Understanding Redis Memory Limits and Eviction Policies

This article explains how to configure Redis's maximum memory usage, describes the built‑in eviction strategies such as noeviction, allkeys‑lru, volatile‑lru, random and ttl policies, shows how to query and set these policies via configuration files or runtime commands, and details the LRU and LFU algorithms used by Redis, including Java sample code and recent improvements in Redis 3.0 and 4.0.

LFULRUMemory Management
0 likes · 9 min read
Understanding Redis Memory Limits and Eviction Policies
Programmer DD
Programmer DD
Jul 26, 2020 · Databases

Mastering Redis Memory Limits and Eviction Policies: Config, LRU, LFU Explained

Redis, an in‑memory key‑value store, lets you set a maximum memory limit via configuration files or runtime commands, choose among various eviction strategies such as noeviction, allkeys‑lru, volatile‑lru, and LFU, and understand how approximate LRU works, with Java code examples illustrating these concepts.

LFULRUMemory Management
0 likes · 10 min read
Mastering Redis Memory Limits and Eviction Policies: Config, LRU, LFU Explained
MaGe Linux Operations
MaGe Linux Operations
Jul 16, 2020 · Databases

Master Redis Memory Limits and Eviction Policies: Config, LRU, LFU Explained

This article explains how to configure Redis's maximum memory usage, modify memory limits at runtime, understand the built‑in eviction strategies—including noeviction, allkeys‑lru, volatile‑lru, allkeys‑random, volatile‑random, and volatile‑ttl—how to query and set these policies, and the details of LRU and LFU algorithms with Java examples and performance comparisons.

LFULRUMemory Management
0 likes · 10 min read
Master Redis Memory Limits and Eviction Policies: Config, LRU, LFU Explained
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jun 30, 2020 · Databases

Understanding Redis Eviction Policies: maxmemory, LRU, LFU, and Expiration Strategies

This article explains how Redis handles memory limits with the maxmemory setting, describes the six eviction policies—including noeviction, allkeys‑lru, volatile‑lru, allkeys‑random, volatile‑random, and volatile‑ttl—covers the LRU and LFU algorithms, and outlines the three key expiration deletion methods as well as RDB and AOF persistence handling.

LFULRUcaching
0 likes · 11 min read
Understanding Redis Eviction Policies: maxmemory, LRU, LFU, and Expiration Strategies
Selected Java Interview Questions
Selected Java Interview Questions
May 21, 2020 · Databases

Redis Memory Limits, Eviction Policies, and LRU/LFU Implementation

This article explains how to configure Redis's maximum memory usage, describes the various eviction strategies including noeviction, allkeys‑lru, volatile‑lru, random and ttl policies, shows how to query and set these policies via configuration files or commands, and provides Java code for a simple LRU cache while discussing Redis's approximate LRU and LFU algorithms.

ConfigurationJavaLFU
0 likes · 15 min read
Redis Memory Limits, Eviction Policies, and LRU/LFU Implementation
Java Captain
Java Captain
Dec 12, 2019 · Databases

Redis Memory Limits, Configuration, and Eviction Policies (LRU & LFU)

This article explains how to set Redis's maximum memory usage via configuration files or commands, describes the built‑in eviction strategies including noeviction, allkeys‑lru, volatile‑lru, allkeys‑random, volatile‑random, volatile‑ttl, and shows how to query and change these policies, while also covering LRU fundamentals, a Java LRU cache example, Redis's approximate LRU implementation, its 3.0 optimizations, and the newer LFU eviction algorithm.

JavaLFULRU
0 likes · 10 min read
Redis Memory Limits, Configuration, and Eviction Policies (LRU & LFU)
Selected Java Interview Questions
Selected Java Interview Questions
Nov 4, 2019 · Databases

Redis Expiration Strategies and Memory Eviction Mechanisms

This article explains how Redis removes expired keys using periodic and lazy deletion, describes the slave expiration handling, details the asynchronous memory reclamation commands like UNLINK and FLUSHALL ASYNC, and outlines the various maxmemory eviction policies including LRU, LFU, and their implementations.

CacheExpirationLFU
0 likes · 13 min read
Redis Expiration Strategies and Memory Eviction Mechanisms
Architecture Digest
Architecture Digest
Aug 21, 2018 · Backend Development

Evolution of Java Caching at iQIYI: From Database Lookups to Guava and Caffeine

This article traces iQIYI's five‑stage journey of Java caching—from simple database queries and in‑process HashMap caches, through Guava's advanced features addressing lock contention, expiration, and refresh, to the high‑performance Caffeine library with its W‑TinyLFU algorithm—while providing code examples and architectural insights.

CaffeineGuavaLRU
0 likes · 20 min read
Evolution of Java Caching at iQIYI: From Database Lookups to Guava and Caffeine
Programmer DD
Programmer DD
Jul 10, 2018 · Backend Development

How Guava Cache Works Under the Hood: Expiration, LRU, and Implementation Details

This article explains the design and inner workings of Google Guava's Cache library, covering JVM‑level caching, the advantages over simple maps, a real‑world Kafka alerting scenario, code examples, expiration policies, LRU handling, concurrency mechanisms, and the builder pattern used to configure caches.

ExpirationGuavaJava
0 likes · 10 min read
How Guava Cache Works Under the Hood: Expiration, LRU, and Implementation Details
ITPUB
ITPUB
Jun 23, 2017 · Databases

Inside MySQL InnoDB Buffer Pool: Architecture, Data Structures, and Optimization

This article provides an in‑depth technical walkthrough of MySQL InnoDB's Buffer Pool, covering its core data structures, instance layout, LRU and Flush list management, memory allocation strategies, read‑ahead/write‑ahead mechanisms, double‑write buffering, and the specialized threads that keep the pool efficient.

Database InternalsInnoDBLRU
0 likes · 39 min read
Inside MySQL InnoDB Buffer Pool: Architecture, Data Structures, and Optimization
ITPUB
ITPUB
Mar 27, 2017 · Backend Development

Mastering Cache Algorithms: From LRU to LFU and Beyond

This article explains why caching is essential, defines core concepts such as hits, misses, and costs, compares major replacement policies (LRU, LFU, FIFO, ARC, etc.), and provides Java code examples for implementing these algorithms in a backend system.

BackendCacheJava
0 likes · 19 min read
Mastering Cache Algorithms: From LRU to LFU and Beyond
ITPUB
ITPUB
Jan 21, 2017 · Databases

How Redis Implements LRU Eviction: Deep Dive with Python Example

This article explains Redis's LRU eviction mechanism, starting with a brief LRU overview, presenting a Python LRU cache implementation, then detailing Redis's internal LRU clock, object fields, maxmemory policies, and both active and passive eviction processes, highlighting configuration impacts on performance.

Cache EvictionLRUMemory Management
0 likes · 15 min read
How Redis Implements LRU Eviction: Deep Dive with Python Example
Baidu Maps Tech Team
Baidu Maps Tech Team
May 11, 2016 · Backend Development

Mastering Cache Strategies: When to Use LRU, LFU, and Consistency Techniques

This article explains why caching is essential for high‑performance data retrieval, compares LRU and LFU eviction policies, presents three Redis‑based cache implementations, and discusses consistency challenges and solutions such as eviction ordering, consistent hashing, and delayed eviction in distributed systems.

ConsistencyLFULRU
0 likes · 10 min read
Mastering Cache Strategies: When to Use LRU, LFU, and Consistency Techniques
21CTO
21CTO
Mar 1, 2016 · Backend Development

Mastering Cache Algorithms: From LRU to LFU with Java Implementations

This article explains the fundamentals of caching, why caches are needed, describes common replacement policies such as LRU, LFU, FIFO, ARC, and provides Java code examples for each algorithm, helping developers choose and implement the right cache strategy for their applications.

BackendCacheJava
0 likes · 19 min read
Mastering Cache Algorithms: From LRU to LFU with Java Implementations
21CTO
21CTO
Jan 23, 2016 · Backend Development

From Interview Blunders to Cache Algorithms: A Deep Dive into Caching

The article blends a humorous interview scenario with a thorough explanation of caching concepts, including definitions, hit/miss mechanics, eviction strategies, and detailed Java implementations of algorithms such as LFU, LRU, FIFO, ARC, and Random Cache, illustrating how to choose and code cache policies.

JavaLFULRU
0 likes · 22 min read
From Interview Blunders to Cache Algorithms: A Deep Dive into Caching
Architect
Architect
Dec 10, 2015 · Databases

Understanding Redis maxmemory Configuration and Approximate LRU Eviction Policies

Redis provides a configurable maxmemory setting to limit memory usage, and offers several eviction policies—including allkeys‑lru, volatile‑lru, and random strategies—implemented via an approximate LRU algorithm whose behavior can be tuned with maxmemory‑samples, allowing administrators to balance performance and memory reclamation.

LRUMemory Managementeviction
0 likes · 11 min read
Understanding Redis maxmemory Configuration and Approximate LRU Eviction Policies
Architect
Architect
Dec 1, 2015 · Backend Development

Cache Update Strategies: LRU/LFU/FIFO, Timeout Eviction, and Proactive Refresh

The article reviews three cache update strategies—algorithmic eviction (LRU/LFU/FIFO), timeout‑based eviction, and proactive updates—analyzing their consistency guarantees and maintenance costs, and then proposes a combined best‑practice approach for reliable backend caching.

BackendLRUTimeout
0 likes · 7 min read
Cache Update Strategies: LRU/LFU/FIFO, Timeout Eviction, and Proactive Refresh