Tag: Cache

12 articles

Spymemcached Deep Dive: Thread Model, Sharding and Serialization

Java service integrating with Memcached needs to understand Spymemcached's thread model, sharding routing and serialization details.

EVCache Internal Principles: Memcached Architecture, Slab and Eviction

Using EVCache in large-scale distributed cache needs understanding of underlying Memcached memory management and eviction behavior.

Guava Cache Source Analysis: LocalCache, Segment and LoadingCache

Guava Cache is widely used in production, but many lack source-level understanding of LocalCache/Segment/LoadingCache behavior.

Guava Cache: concurrencyLevel and refreshAfterWrite in Practice

Deep dive into concurrencyLevel, refreshAfterWrite and LoadingCache dynamic loading behavior, with horizontal comparison with custom LinkedHashMap LRU implementation.

Guava Cache Troubleshooting: OOM, Expiration and Hit Rate Issues

Using Guava Cache for local caching in Java projects, troubleshooting and fixing production issues like OOM, abnormal hit rate, thread blocking and performance regression.

Guava Cache: Deletion Strategy, Expiration and Common Pitfalls

Guava Cache uses 'lazy cleanup + LRU+FIFO' strategy. Passive deletion and active deletion need to be used together. Deep dive into expireAfterAccess, expireAfterWrite and...

Guava Cache: From ConcurrentHashMap to LocalCache Structure

Deep dive into LocalCache, Guava Cache's core implementation class, covering segmented lock design, five queue mechanism, eviction strategy and lazy cleanup principles.

Cache Practice: Local vs Distributed (Guava/Redis 7.2)

High concurrency read-heavy business, database can't handle it, need to improve throughput and stability.

MySQL Connection, Thread, Query Cache and Optimizer Deep Dive

MySQL connection mechanism, half-duplex communication, query cache, query optimizer explained.

MyBatis Level 2 Cache Integration with Redis, Testing and Source Code Analysis

Currently, the level 2 cache we implement is per service. At this time, the cache is on a single server.

MyBatis Deep Dive - Level 1 Cache, Code Testing, and Source Code Analysis

Detailed introduction to MyBatis level 1 cache working principles, code testing, invalidation scenarios, and source code analysis.

MyBatis Level 2 Cache - Testing and Source Code Analysis

Detailed introduction to MyBatis level 2 cache working principles, enable configuration, code testing, and source code analysis.