Tag

LoadingCache

1 views collected around this technical thread.

Top Architect
Top Architect
Dec 9, 2022 · Backend Development

In-Memory Caching with Guava LoadingCache: Design, Algorithms, and Best Practices

This article explains the principles and practical implementation of in‑memory caching using Guava’s LoadingCache, covering cache initialization parameters, put and loading strategies, eviction policies, common algorithms such as LRU, LFU, FIFO, and tips for avoiding memory issues and monitoring cache performance.

CachingGuavaJava
0 likes · 15 min read
In-Memory Caching with Guava LoadingCache: Design, Algorithms, and Best Practices
Top Architect
Top Architect
Nov 8, 2022 · Backend Development

Understanding In-Memory Caching with Guava LoadingCache and LRU Implementation in Java

This article explains the fundamentals of in‑memory caching, compares it with buffering, introduces Guava's LoadingCache configuration and operations, discusses eviction strategies, illustrates common cache algorithms (FIFO, LRU, LFU), provides a simple LRU implementation using LinkedHashMap, and offers practical guidelines for when and how to apply caching to improve backend performance.

BackendCachingGuava
0 likes · 14 min read
Understanding In-Memory Caching with Guava LoadingCache and LRU Implementation in Java
Top Architect
Top Architect
Oct 23, 2022 · Backend Development

In‑Memory Cache Design with Guava LoadingCache, Eviction Strategies, and LRU Implementation

This article explains the fundamentals of in‑memory caching, introduces Guava's LoadingCache API, discusses cache sizing, eviction policies, common algorithms like FIFO, LRU, LFU, shows a simple LRU implementation using LinkedHashMap, and provides practical guidance on when and how to apply caching for performance optimization.

CachingGuavaJava
0 likes · 14 min read
In‑Memory Cache Design with Guava LoadingCache, Eviction Strategies, and LRU Implementation
Qunar Tech Salon
Qunar Tech Salon
Nov 28, 2014 · Backend Development

Guava Cache Guide: Building, Loading, Eviction, Refresh, and Advanced Features

This article explains how to create and configure Guava LoadingCache instances, covering builder options, CacheLoader implementation, explicit insertion, callable loading, size‑based, timed, and reference‑based eviction, removal listeners, refresh strategies, statistics, asMap view, and interruption handling, with complete Java code examples.

CacheEvictionGuava
0 likes · 15 min read
Guava Cache Guide: Building, Loading, Eviction, Refresh, and Advanced Features