Tagged articles
16 articles
Page 1 of 1
Coder Trainee
Coder Trainee
Feb 17, 2026 · Backend Development

Understanding Spring Cache’s @Cacheable Annotation

The article explains how Spring Cache, introduced after Spring 3.1, uses the @Cacheable annotation to declaratively cache method results, detailing each attribute such as cacheNames, key, keyGenerator, and unless, with code examples illustrating key generation and conditional caching.

@CacheableSpring CacheSpring Framework
0 likes · 4 min read
Understanding Spring Cache’s @Cacheable Annotation
macrozheng
macrozheng
Oct 16, 2025 · Backend Development

How to Turn a 3‑Second Category Tree into 30 ms: A Real‑World Backend Optimization

This article analyzes a severe N+1 query performance disaster in a Java Spring Boot project, explains why the traditional recursive approach is slow, and presents a production‑tested solution that reduces database calls to one, uses O(n) tree construction, and adds multi‑level caching to achieve a 100‑fold speedup.

Java backendN+1 QuerySpring Cache
0 likes · 24 min read
How to Turn a 3‑Second Category Tree into 30 ms: A Real‑World Backend Optimization
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
Sanyou's Java Diary
Sanyou's Java Diary
Feb 20, 2023 · Backend Development

Mastering Spring Cache: From Hard‑Coded to Multi‑Level Redis Integration

This tutorial walks through the evolution from manual Redis calls to Spring Cache abstraction, explains AOP‑based proxying, details core annotations, demonstrates Caffeine and Redisson integration, explores list caching, and shows how to build a custom two‑level cache for high‑performance Java back‑ends.

CaffeineMulti-level CacheSpring Cache
0 likes · 18 min read
Mastering Spring Cache: From Hard‑Coded to Multi‑Level Redis Integration
Java Architecture Diary
Java Architecture Diary
Jan 5, 2023 · Databases

Why Dragonfly DB Claims 25× Redis Speed and How to Get Started

Dragonfly DB is a high‑performance, Memcached‑ and Redis‑compatible in‑memory database that reportedly delivers up to 25× Redis throughput, with a shared‑nothing, multithreaded architecture; this guide shows quick Docker deployment on Linux/macOS, client access methods, Spring cache integration, and key usage notes.

Docker deploymentDragonflyDBIn-Memory Database
0 likes · 3 min read
Why Dragonfly DB Claims 25× Redis Speed and How to Get Started
IT Services Circle
IT Services Circle
Apr 26, 2022 · Databases

How to Install, Integrate, and Use Redis with Spring Boot

This article introduces Redis, explains how to install it on various platforms, demonstrates integrating Redis with Spring Boot using Spring Cache annotations, configures connection pools for Lettuce and Jedis, and provides custom Redis service implementations for flexible cache operations.

Spring BootSpring Cachecaching
0 likes · 14 min read
How to Install, Integrate, and Use Redis with Spring Boot
macrozheng
macrozheng
Jul 5, 2021 · Backend Development

Master Spring Cache: Simplify Caching Across Redis, Ehcache, and More

This article introduces Spring Cache as a unified caching solution that abstracts away the specifics of Redis, Ehcache, and other providers, explains its core concepts, annotations, configuration, and demonstrates practical usage with code examples to eliminate manual cache handling.

EhcacheSpring BootSpring Cache
0 likes · 16 min read
Master Spring Cache: Simplify Caching Across Redis, Ehcache, and More
Top Architect
Top Architect
Sep 13, 2020 · Backend Development

Java Distributed Caching with Redis and Redisson

This article explains why caching is essential for Java distributed applications, introduces Redis as an in‑memory data store, and demonstrates how the Redisson framework provides distributed cache implementations—including RMapCache, Spring Cache integration, and JCache support—complete with code examples and configuration details.

JCacheSpring Cachedistributed cache
0 likes · 8 min read
Java Distributed Caching with Redis and Redisson
macrozheng
macrozheng
Mar 16, 2020 · Backend Development

Mastering Spring Data Redis: Installation, Caching, and Advanced Usage

This comprehensive guide walks you through installing Redis on Linux and Windows, configuring Spring Cache annotations, setting up JSON serialization with RedisTemplate, using connection pools, and implementing a flexible RedisService with controller examples, providing all the essential steps to integrate Redis into your Spring Boot applications.

Spring CacheSpring Data Redisbackend-development
0 likes · 25 min read
Mastering Spring Data Redis: Installation, Caching, and Advanced Usage
Java Captain
Java Captain
Dec 20, 2019 · Backend Development

Using Redisson for Distributed Caching in Java Applications

This article explains why caching is essential for Java distributed applications, introduces Redis and Redisson, and demonstrates how to implement distributed caches using Redisson Maps, Spring Cache integration, and the JCache API with practical code examples.

JCacheSpring Cachedistributed cache
0 likes · 6 min read
Using Redisson for Distributed Caching in Java Applications
Java Architecture Diary
Java Architecture Diary
Mar 24, 2019 · Backend Development

How to Extend Spring Cache for Multi‑Tenant Isolation and TTL

This article explains Spring's annotation‑based caching, analyzes why the default cache key collides in multi‑tenant scenarios, shows how to embed tenant identifiers into keys, and provides a custom CacheManager implementation that parses TTL from the cache name and applies it to Redis entries.

CacheManagerSpring BootSpring Cache
0 likes · 5 min read
How to Extend Spring Cache for Multi‑Tenant Isolation and TTL
Qunar Tech Salon
Qunar Tech Salon
Sep 7, 2017 · Backend Development

Understanding Caching in Java with Spring Cache, Ehcache, and Redis

This article explains the concept of caching in Java, the importance of reducing database I/O, introduces Spring Cache annotations and their limitations, demonstrates conditional caching with code examples, and provides configuration details for integrating Ehcache and Redis as cache providers.

EhcacheSpring Cacheannotations
0 likes · 10 min read
Understanding Caching in Java with Spring Cache, Ehcache, and Redis