Quick Start
MemoryCache
In-memory LRU cache with TTL support:Per-Entry TTL
NoopCache
No-op implementation for testing or disabling cache:Conditional Cache
LookupCacheService
Effect-native lookup-based caching usingeffect/Cache. Automatically computes values on cache miss and deduplicates concurrent requests.
LookupCache Methods
When to Use Which
| Use Case | Service |
|---|---|
| Manual get/set control | CacheService + MemoryCache |
| Auto-compute on miss | LookupCacheService |
| Dedupe concurrent requests | LookupCacheService |
| External data sources | CacheService |
Methods
get
Option.some(value) if found and not expired, Option.none() otherwise.
set
defaultTtl if not specified.
delete
true if key existed and was deleted.

