WriteThroughStore<K, V> constructor

WriteThroughStore<K, V>({
  1. required CacheLoader<K, V> load,
  2. required CacheStorer<K, V> store,
})

Creates a cache backed by load (read-through on a miss) and store (called on every put before the in-memory entry is updated). Audited: 2026-06-12 11:26 EDT

Implementation

WriteThroughStore({required CacheLoader<K, V> load, required CacheStorer<K, V> store})
  : _load = load,
    _store = store;