put method
Persists value to the store, then updates the in-memory entry. The
store write is awaited first so a failed write leaves the cache unchanged.
Audited: 2026-06-12 11:26 EDT
Implementation
Future<void> put(K key, V value) async {
await _store(key, value);
_cache[key] = value;
}