# cocache | Ahoo Wang | Knowledge Base | Instagit

Level 2 Distributed Coherence Cache Framework

GitHub Stars: 14

Repository: https://github.com/ahoo-wang/cocache

---

## Articles

### [How CoCache's Proxy-Based Caching Works Under the Hood](/ahoo-wang/cocache/how-does-cocache-s-proxy-based-caching-work-under-the-hood)

Discover how CoCache's proxy-based caching works under the hood. Learn how JDK dynamic proxies manage distributed data layers seamlessly for developers.

- Tags: internals
- Published: 2026-02-23

### [How to Handle Cache Serialization with Different Codecs in CoCache](/ahoo-wang/cocache/how-to-handle-cache-serialization-with-different-codecs-in-cocache)

Learn to handle cache serialization with different codecs in CoCache. Explore built-in JSON, Redis Hash, and custom binary formats using CodecExecutor.

- Tags: how-to-guide
- Published: 2026-02-23

### [How to Customize CoCache Auto-Configuration Using CoCacheProperties](/ahoo-wang/cocache/how-to-customize-cocache-auto-configuration-through-cocache-properties)

Customize CoCache auto-configuration with CoCacheProperties. Disable CoCache entirely or add custom fields for advanced cache bean configuration. Learn more now.

- Tags: how-to-guide
- Published: 2026-02-23

### [How CoCache Integrates with Spring's Cache Abstraction: A Complete Guide](/ahoo-wang/cocache/how-does-cocache-integrate-with-spring-s-cache-abstraction)

Learn how CoCache integrates with Spring's cache abstraction using @EnableCoCache proxy beans and CoCacheManager for seamless caching. A complete guide.

- Tags: how-to-guide
- Published: 2026-02-23

### [How @JoinCacheable Enables Automatic Cache Joining in the Cocache Framework](/ahoo-wang/cocache/how-does-join-cacheable-annotation-enable-automatic-cache-joining)

Discover how @JoinCacheable in Cocache automatically joins two independent caches into one cohesive unit. Learn the Spring-based metadata parsing and proxy generation pipeline behind this powerful feature.

- Tags: deep-dive
- Published: 2026-02-23

### [How CacheEvictedEventBus Enables Distributed Cache Invalidation in Cocache](/ahoo-wang/cocache/how-does-cache-evicted-event-bus-work-for-distributed-cache-invalidation)

Discover how CacheEvictedEventBus in Cocache synchronizes distributed caches by broadcasting eviction events across JVMs, ensuring local entries are invalidated when remote modifications occur.

- Tags: internals
- Published: 2026-02-23

### [How to Implement a Custom KeyConverter for Complex Object Keys in CoCache](/ahoo-wang/cocache/how-to-implement-a-custom-key-converter-for-complex-object-keys)

Learn to implement a custom KeyConverter for complex object keys in CoCache. Register your converter as a Spring bean to ensure stable cache identifiers and boost performance.

- Tags: how-to-guide
- Published: 2026-02-23

### [How CoCache Handles Multi-Instance Synchronization for Cache Updates](/ahoo-wang/cocache/how-does-cocache-handle-multi-instance-synchronization-for-cache-updates)

Discover how CoCache ensures multi-instance synchronization with lightweight eviction events, clearing local caches and maintaining a distributed store as the source of truth.

- Tags: how-to-guide
- Published: 2026-02-23

### [How CoCache Prevents Cache Stampede with MissingGuard: Per-Key Locking and Sentinel Values](/ahoo-wang/cocache/how-does-cocache-prevent-cache-stampede-with-missing-guard)

Learn how CoCache prevents cache stampede with MissingGuard using per-key locking and sentinel values to ensure efficient database querying for missing cache items.

- Tags: deep-dive
- Published: 2026-02-23

### [How to Use SpEL Expressions for Dynamic Cache Key Generation in @CoCache](/ahoo-wang/cocache/how-to-use-spel-expressions-for-dynamic-cache-key-generation-in-co-cache)

Generate dynamic cache keys in @CoCache with SpEL expressions. Learn how to use the keyExpression attribute to customize caching based on method arguments and Spring beans.

- Tags: how-to-guide
- Published: 2026-02-23

### [How to Integrate CoCache with Redis for Distributed Caching](/ahoo-wang/cocache/how-to-integrate-cocache-with-redis-for-distributed-caching)

Learn to integrate CoCache with Redis for distributed caching using Spring Boot auto-configuration. Automatically create Redis-backed caches by annotating interfaces and setting connection properties.

- Tags: how-to-guide
- Published: 2026-02-23

### [How to Use Bloom Filter for Key Filtering to Reduce Cache Miss Stampede in CoCache](/ahoo-wang/cocache/how-to-use-bloom-filter-for-key-filtering-to-reduce-cache-miss-stampede)

Employ CoCache and Guava's Bloom Filter to efficiently filter non-existent keys, preventing backend overload and cache miss stampedes.

- Tags: how-to-guide
- Published: 2026-02-23

### [CoCache ClientSideCache Implementations: When to Use Map, Guava, or Caffeine](/ahoo-wang/cocache/what-are-the-available-client-side-cache-implementations-and-when-to-use-each-guava-caffeine-map)

Explore CoCache ClientSideCache implementations: Map, Guava, and Caffeine. Learn when to use each for efficient in-memory caching strategies and optimized performance.

- Tags: deep-dive
- Published: 2026-02-23

### [How to Configure TTL with Jitter Using the ttlAmplitude Parameter in @CoCache](/ahoo-wang/cocache/how-to-configure-ttl-with-jitter-using-the-ttl-amplitude-parameter-in-co-cache)

Configure TTL with jitter in @CoCache using ttlAmplitude. Prevent cache stampedes by distributing expirations across a dynamic interval.

- Tags: how-to-guide
- Published: 2026-02-23

### [How CoCache Ensures Cache Consistency Across Multiple Instances](/ahoo-wang/cocache/how-does-cocache-ensure-cache-consistency-across-multiple-instances)

Learn how CoCache ensures cache consistency across multiple instances using distributed L1 cache, local L2 cache, and event bus broadcasts for efficient invalidation.

- Tags: internals
- Published: 2026-02-23

### [How to Implement a Custom CacheSource for Database-Backed Cache Loading in CoCache](/ahoo-wang/cocache/how-to-implement-a-custom-cache-source-for-database-backed-cache-loading-in-cocache)

Learn to implement a custom CacheSource for database-backed cache loading in CoCache. CoCache automatically loads data from your database on cache misses.

- Tags: how-to-guide
- Published: 2026-02-23

### [How CoCache's Multi-Level Caching Architecture Works: L1 Client-Side vs L2 Distributed](/ahoo-wang/cocache/how-does-cocache-s-multi-level-caching-architecture-work-l1-client-side-vs-l2-distributed)

Explore CoCache's multi-level caching: fast L1 client-side and shared L2 distributed cache. Learn how event-driven eviction ensures consistency between caches. Understand CoCache architecture.

- Tags: architecture
- Published: 2026-02-23

