Tagged articles
31 articles
Page 1 of 1
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
Architect
Architect
Jan 7, 2026 · Databases

Why Did Redis Suddenly Evict Keys? A Deep Dive into Memory, Pipelines, and Client Buffers

This article walks through a production incident where Redis began returning missing keys, detailing the step‑by‑step diagnosis—from monitoring logs and TTL checks to discovering memory spikes caused by client‑output‑buffer‑limit overflow and pipeline traffic—followed by emergency and permanent remediation measures.

MemoryPipelineclient-output-buffer-limit
0 likes · 11 min read
Why Did Redis Suddenly Evict Keys? A Deep Dive into Memory, Pipelines, and Client Buffers
JakartaEE China Community
JakartaEE China Community
Sep 2, 2025 · Backend Development

Choosing the Right Cache Solution: Key Criteria and Trade‑offs

This article explains why caching is a performance trade‑off, outlines essential cache features such as size limits, eviction policies, TTL, configuration, integration APIs, and distributed versus local modes, and provides a comprehensive checklist for evaluating cache providers.

CacheJCacheSpring Cache
0 likes · 12 min read
Choosing the Right Cache Solution: Key Criteria and Trade‑offs
dbaplus Community
dbaplus Community
Apr 23, 2025 · Databases

Why Redis Used Memory Jumped to 78 GB and How to Diagnose It

A Redis instance suddenly reported 78.9 GB of used_memory against a 16 GB maxmemory limit, triggering massive key eviction; this article explains how INFO reports used_memory, what the metric actually measures, how Redis 7 changes memory accounting, the exact eviction conditions, and provides a Python script to pinpoint the memory‑hogs.

Memory ManagementPythoneviction
0 likes · 17 min read
Why Redis Used Memory Jumped to 78 GB and How to Diagnose It
JD Tech
JD Tech
Feb 19, 2025 · Backend Development

Understanding the Design and Implementation of Caffeine Cache

This article provides a comprehensive walkthrough of Caffeine cache's architecture, explaining its fixed-size eviction policy, underlying data structures such as ConcurrentHashMap, MPSC buffers, Count‑Min Sketch frequency tracking, and the dynamic window‑probation‑protected zones, while detailing key methods like put, getIfPresent, and maintenance.

CacheCaffeineCount-Min Sketch
0 likes · 71 min read
Understanding the Design and Implementation of Caffeine Cache
JD Cloud Developers
JD Cloud Developers
Oct 18, 2024 · Backend Development

Mastering Caffeine Cache: High‑Performance Java Caching Techniques

This guide introduces Caffeine, a high‑performance Java caching library, explains its core features, configuration options, loading strategies—including manual, automatic, asynchronous, and async loading caches—eviction policies, removal listeners, and statistics collection, providing code examples for each use case.

CaffeineJavaeviction
0 likes · 16 min read
Mastering Caffeine Cache: High‑Performance Java Caching Techniques
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 21, 2024 · Backend Development

Mastering Caffeine Cache in Spring Boot 3.2: Performance, Eviction & Async Usage

This article introduces the high‑performance Caffeine caching library for Spring Boot 3.2, explains its core features, demonstrates detailed performance benchmarks, and provides practical code examples covering synchronous and asynchronous operations, eviction policies, removal listeners, refresh mechanisms, and statistics collection.

AsyncCacheCaffeine
0 likes · 12 min read
Mastering Caffeine Cache in Spring Boot 3.2: Performance, Eviction & Async Usage
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
Selected Java Interview Questions
Selected Java Interview Questions
Jun 27, 2024 · Backend Development

Caffeine Cache Introduction, Basics, and Spring Boot Integration

This article introduces the Java Caffeine caching library, explains its manual, loading, and async cache APIs, details eviction and refresh strategies, shows how to collect statistics, and demonstrates full integration with Spring Boot using Maven dependencies, cache annotations, constant definitions, configuration classes, and usage examples.

BackendCacheCaffeine
0 likes · 16 min read
Caffeine Cache Introduction, Basics, and Spring Boot Integration
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)
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
Ops Development Stories
Ops Development Stories
Oct 9, 2021 · Cloud Native

Why Do Some Kubernetes Pods Stay Stuck in Terminating? Causes and Fixes

This article explains the Kubernetes pod lifecycle, the meaning of the Terminating state, detailed pod creation and deletion processes, and the eviction mechanisms of both kube‑controller‑manager and kubelet, offering troubleshooting steps and best practices to resolve pods that remain stuck in Terminating.

Cloud NativeKubernetesPod Lifecycle
0 likes · 13 min read
Why Do Some Kubernetes Pods Stay Stuck in Terminating? Causes and Fixes
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
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
Efficient Ops
Efficient Ops
Nov 1, 2020 · Databases

Why Is Redis Slowing Down? Diagnose and Fix Common Latency Issues

This article explains the typical reasons behind Redis latency spikes—such as complex commands, big keys, concentrated expirations, memory limits, fork overhead, CPU binding, AOF settings, swap usage, and network overload—and provides practical steps and monitoring techniques to identify and resolve each problem.

BigKeyLatencySlowlog
0 likes · 18 min read
Why Is Redis Slowing Down? Diagnose and Fix Common Latency Issues
macrozheng
macrozheng
Sep 18, 2020 · Databases

How Redis Boosts MySQL Performance with Smart Caching and Eviction

This article explains how Redis, created to alleviate MySQL’s read‑heavy load, provides in‑memory caching, various data structures, expiration policies, eviction strategies, Bloom‑filter protection against cache penetration, and techniques to prevent cache breakdown and avalanche, improving overall system performance.

bloom-filterevictionredis
0 likes · 10 min read
How Redis Boosts MySQL Performance with Smart Caching and Eviction
Top Architect
Top Architect
Aug 2, 2020 · Backend Development

Key Considerations for Implementing a Local Cache in Java

This article outlines the essential design considerations for building a local cache in Java, covering data structures, capacity limits, eviction policies, expiration handling, thread safety, blocking mechanisms, simple APIs, and optional persistence, with illustrative code examples.

Javaconcurrencyeviction
0 likes · 13 min read
Key Considerations for Implementing a Local Cache in Java
Big Data Technology & Architecture
Big Data Technology & Architecture
Jul 11, 2020 · Big Data

Alluxio Tiered Metadata Management and Asynchronous Cache Eviction Implementation

The article explains Alluxio's tiered metadata management architecture, describing how the system separates hot and cold metadata into cached and persisted layers, and details the custom asynchronous eviction thread and cache implementation that replace Guava cache for efficient large‑scale metadata handling.

AlluxioCachedistributed storage
0 likes · 15 min read
Alluxio Tiered Metadata Management and Asynchronous Cache Eviction Implementation
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
Top Architect
Top Architect
May 6, 2020 · Backend Development

Key Considerations and Implementation Strategies for a Local Cache

This article outlines the essential considerations for designing a local cache—including data structures, size limits, eviction policies, expiration, thread safety, blocking mechanisms, simple APIs, and persistence—and demonstrates implementation approaches with Java code examples such as Map usage, synchronized caches, and memoization techniques.

Javaevictionlocal cache
0 likes · 11 min read
Key Considerations and Implementation Strategies for a Local Cache
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Feb 29, 2020 · Databases

Master Redis Memory Management: Expiration & Eviction Strategies Explained

Redis employs distinct memory reclamation mechanisms—expiration policies (timed, lazy, periodic) and eviction strategies triggered when maxmemory is reached—each with trade-offs in CPU and memory usage, and offers configurable policies such as allkeys‑lru, volatile‑ttl, and noeviction to manage cache data effectively.

cachingevictionredis
0 likes · 6 min read
Master Redis Memory Management: Expiration & Eviction Strategies Explained
Java Captain
Java Captain
Dec 14, 2019 · Backend Development

Key Considerations and Implementation Strategies for a Local Cache in Java

This article outlines the essential design points for a local Java cache—including data structures, size limits, eviction policies, expiration handling, thread safety, blocking mechanisms, simple APIs, and persistence options—while providing concrete code examples and implementation guidance.

CacheJavaPersistence
0 likes · 12 min read
Key Considerations and Implementation Strategies for a Local Cache in Java
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