Tagged articles
52 articles
Page 1 of 1
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
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
JD Cloud Developers
JD Cloud Developers
Nov 4, 2024 · Databases

How Redis LFU Detects Hot Keys and Enables Client‑Side Caching

This article explains Redis 4.0's LFU‑based hot‑key detection mechanism, the probabilistic counter algorithm, its configuration options, and how Redis 6.0 introduces client‑side caching with tracking and broadcasting modes to keep client data consistent with the server.

Client Side CachingDatabase OptimizationHot Key Detection
0 likes · 13 min read
How Redis LFU Detects Hot Keys and Enables Client‑Side Caching
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
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
政采云技术
政采云技术
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
Code Ape Tech Column
Code Ape Tech Column
Aug 28, 2023 · Backend Development

Understanding and Solving Redis Hot Key Problems

This article explains what Redis hot keys are, how they cause load imbalance in clustered environments, and presents multiple detection techniques and practical mitigation strategies such as rate limiting, second‑level caching, key sharding, and configuration‑center approaches.

BackendCacheHot Key
0 likes · 12 min read
Understanding and Solving Redis Hot Key Problems
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
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
Top Architect
Top Architect
Oct 28, 2022 · Backend Development

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

This article explains how to size Redis memory, configure maxmemory and maxmemory‑policy settings, and choose among various eviction strategies—including no‑eviction, allkeys‑lru, allkeys‑lfu, and volatile options—while detailing the underlying LRU and LFU algorithms used by Redis.

BackendLFUMemory
0 likes · 7 min read
Configuring Redis Memory Size and Eviction Policies (LRU & LFU)
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
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
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
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
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
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 PoliciesLFULRU
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.

LFULRUMemory Management
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.

ConfigurationLFULRU
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.

LFULRUdatabase
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
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.

BackendCacheLFU
0 likes · 19 min read
Mastering Cache Algorithms: From LRU to LFU and Beyond
Java High-Performance Architecture
Java High-Performance Architecture
Dec 9, 2016 · Databases

Redis 4.0 Unveiled: New Module System, PSYNC Enhancements, LFU Cache & More

Redis 4.0 introduces a groundbreaking module system for custom data types, improves replication with tag‑based PSYNC, adds an LFU eviction policy, provides non‑blocking UNLINK deletion, and expands memory introspection commands, collectively enhancing performance, flexibility, and extensibility of this popular in‑memory database.

4.0LFUPSYNC
0 likes · 5 min read
Redis 4.0 Unveiled: New Module System, PSYNC Enhancements, LFU Cache & More
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.

BackendCacheLFU
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.

LFULRUcache algorithms
0 likes · 22 min read
From Interview Blunders to Cache Algorithms: A Deep Dive into Caching