Tagged articles
15 articles
Page 1 of 1
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
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
IT Services Circle
IT Services Circle
Dec 18, 2024 · Databases

Understanding Redis Maxmemory and Eviction Policies

This article explains how Redis limits memory with the maxmemory setting, how to view and modify it, details the available eviction strategies—including the newer LFU policies—and offers guidance on choosing a policy, monitoring usage, and scaling with Redis Cluster.

Memory ManagementRedis Clustercaching
0 likes · 7 min read
Understanding Redis Maxmemory and Eviction Policies
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
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Apr 18, 2024 · Databases

Redis Expiration and Memory Eviction Strategies Explained

This article explains how to set key expiration times in Redis, the lazy and periodic deletion mechanisms for expired data, and the various memory eviction policies that Redis employs when the maxmemory limit is reached, providing a comprehensive guide for interview preparation.

ExpirationLazy DeletionPeriodic Deletion
0 likes · 5 min read
Redis Expiration and Memory Eviction 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
dbaplus Community
dbaplus Community
Jun 12, 2023 · Databases

How a Redis Memory Upgrade Triggered Data Loss: Sentinel Failover Lessons

A recent Redis deployment faced memory expansion, a master‑slave switch, and unexpected data loss when the new master entered read‑only mode, prompting a deep dive into sentinel behavior, maxmemory settings, and replica‑ignore‑maxmemory nuances to prevent similar failures.

Memory Upgradefailoverhigh availability
0 likes · 12 min read
How a Redis Memory Upgrade Triggered Data Loss: Sentinel Failover Lessons
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
ITPUB
ITPUB
Jul 30, 2022 · Databases

How to Choose the Right Redis Memory Eviction Policy and Size Your Cache

When expired keys accumulate and lazy deletion can't keep up, Redis relies on configurable memory eviction policies and proper maxmemory settings, and selecting the appropriate strategy along with an optimal cache size (typically 15‑30% of total data) ensures stable performance and avoids out‑of‑memory errors.

Cache SizingEviction Policiesmaxmemory
0 likes · 7 min read
How to Choose the Right Redis Memory Eviction Policy and Size Your Cache
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
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
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