Tag

Two-Level Cache

0 views collected around this technical thread.

macrozheng
macrozheng
Feb 28, 2025 · Backend Development

Mastering Two-Level Cache in Spring Boot: Caffeine + Redis Integration

This article explains how to build a two‑level cache architecture using Caffeine as a local cache and Redis as a remote cache in a Spring Boot project, covering manual implementation, Spring cache annotations, and a custom AOP‑based solution while discussing advantages, consistency challenges, and best‑practice code examples.

Cache ManagementJavaRedis
0 likes · 20 min read
Mastering Two-Level Cache in Spring Boot: Caffeine + Redis Integration
macrozheng
macrozheng
Mar 8, 2024 · Backend Development

Two-Level Cache in Spring Boot: Boost Performance with Caffeine & Redis

Learn how to implement a two‑level caching architecture in Spring Boot using Caffeine as a local cache and Redis as a remote cache, covering manual implementations, annotation‑driven approaches with @Cacheable/@CachePut/@CacheEvict, and a custom @DoubleCache annotation to minimize code intrusion while improving response times.

Aspect-Oriented ProgrammingCache AnnotationRedis
0 likes · 21 min read
Two-Level Cache in Spring Boot: Boost Performance with Caffeine & Redis
Code Ape Tech Column
Code Ape Tech Column
Feb 26, 2024 · Backend Development

Implementing a Two‑Level Cache with Caffeine and Redis in Spring Boot

This article explains how to design and implement a two‑level caching architecture in Spring Boot by combining a local Caffeine cache with a remote Redis cache, covering manual approaches, annotation‑driven management with Spring Cache, and a custom AOP solution to minimize code intrusion.

JavaRedisSpring Boot
0 likes · 18 min read
Implementing a Two‑Level Cache with Caffeine and Redis in Spring Boot
Architecture Digest
Architecture Digest
Mar 14, 2023 · Backend Development

Design and Selection of Local In-Memory Cache Solutions for Two-Level Cache Architecture

An overview of two-level cache architecture explains why local in-memory caches are needed, outlines essential cache features, compares implementations using ConcurrentHashMap, Guava Cache, Caffeine, and Ehcache with code examples, and discusses consistency, hit-rate improvement, and technology selection, recommending Caffeine for best performance.

EhcacheGuavaJava
0 likes · 11 min read
Design and Selection of Local In-Memory Cache Solutions for Two-Level Cache Architecture
Code Ape Tech Column
Code Ape Tech Column
Jan 16, 2023 · Backend Development

Implementing Two-Level Caching with Spring Cache, Caffeine, and Redis

This article explains how to replace manual cache handling with Spring Cache annotations, introduces the concepts of L1 (Caffeine) and L2 (Redis) caches, discusses design considerations for consistency, null handling, eviction, and provides practical Maven and configuration examples for Java backend applications.

JavaRedisSpring
0 likes · 18 min read
Implementing Two-Level Caching with Spring Cache, Caffeine, and Redis
Code Ape Tech Column
Code Ape Tech Column
May 11, 2022 · Backend Development

Implementing Two-Level Cache with Caffeine and Redis in Spring Boot

This article explains the design and implementation of a two‑level caching architecture using local Caffeine cache as L1 and remote Redis as L2 in Spring Boot, covering manual cache handling, annotation‑based management with Spring Cache, and a custom annotation with AOP to minimize code intrusion.

AOPCache AnnotationRedis
0 likes · 17 min read
Implementing Two-Level Cache with Caffeine and Redis in Spring Boot
Architect's Tech Stack
Architect's Tech Stack
Sep 8, 2020 · Backend Development

Implementing a Two‑Level Cache System with Guava and Redis in Java

This article explains how to design and build a simple two‑level caching solution in Java, covering generic cache interfaces, local caching with Guava, distributed caching with Redis, configuration details, version‑controlled cache keys, and practical usage within a Spring Boot application.

GuavaJavaRedis
0 likes · 25 min read
Implementing a Two‑Level Cache System with Guava and Redis in Java