cachemesh 1.0.0
cachemesh: ^1.0.0 copied to clipboard
Result-first caching and data orchestration layer for Dart and Flutter apps. Memory-first cache with policies, single-flight dedup, and reactive watch streams.
Changelog #
1.0.0 #
Initial release.
Result<T>sealed type (Success<T>/Failure<T>) withfoldandmap.Cachewith five policies:cacheFirst,networkFirst,staleWhileRevalidate,networkOnly,cacheOnly.- In-memory
MemoryCacheStorewith per-entry TTL. - Single-flight deduplication of concurrent fetches per key.
- Reactive
watch(key)broadcast streams. - Manual control:
refresh,prefetch,invalidate,clear,peek. - Pluggable
CacheStoreinterface (disk adapters land in 1.2.0).