Tag

Cache Configuration

1 views collected around this technical thread.

Code Ape Tech Column
Code Ape Tech Column
Jul 29, 2024 · Backend Development

Using Caffeine Cache in Spring Boot: Features, Algorithms, and Configuration

This article introduces Caffeine Cache, explains its W‑TinyLFU algorithm advantages over traditional FIFO, LRU, and LFU strategies, demonstrates manual, synchronous, and asynchronous loading methods, covers eviction policies, statistics, Spring Boot integration, and provides detailed configuration and code examples for Java developers.

Cache ConfigurationCachingCaffeine Cache
0 likes · 30 min read
Using Caffeine Cache in Spring Boot: Features, Algorithms, and Configuration
Top Architect
Top Architect
Dec 27, 2021 · Backend Development

Caffeine Cache in Spring Boot: Algorithm Advantages, Configuration, and Usage

This article introduces Caffeine Cache as a high‑performance local cache for Java, explains its W‑TinyLFU algorithm advantages over Guava, details various eviction and loading strategies, and provides step‑by‑step Spring Boot integration with Maven dependencies, configuration properties, bean definitions, and annotation‑driven usage examples.

Cache ConfigurationCachingCaffeine Cache
0 likes · 21 min read
Caffeine Cache in Spring Boot: Algorithm Advantages, Configuration, and Usage
vivo Internet Technology
vivo Internet Technology
Apr 21, 2021 · Backend Development

Understanding and Configuring Caffeine Cache in Java Applications

Understanding Caffeine Cache in Java involves using its builder for options like expiration, refresh, and weight‑based eviction, recognizing that configuring both expireAfterWrite and expireAfterAccess is redundant, grasping core methods such as isBounded, refreshes, computeIfAbsent, and avoiding common pitfalls like mis‑ordered expiration settings, blocking loaders, cache penetration, and mutable cached objects.

Cache ConfigurationCache EvictionCaffeine Cache
0 likes · 15 min read
Understanding and Configuring Caffeine Cache in Java Applications