vault_cache 0.1.2
vault_cache: ^0.1.2 copied to clipboard
A pure Dart cache library with multi-layer storage, stale-while-revalidate, tag-based invalidation, and swappable storage adapters. Zero Flutter dependencies.
0.1.2 #
- Add
example/example.dartas canonical entry point to satisfy pub.dev example check.
0.1.1 #
- Fix repository and homepage URLs in
pubspec.yaml. - Add explicit documented constructors to
EvictionStrategy,FifoStrategy,LfuStrategy,LruStrategy, andRevalidationQueueto improve pub.dev API documentation score.
0.1.0 #
- Initial release.
- Typed multi-layer cache (L1 memory + optional L2 adapter) with automatic L2→L1 promotion.
- Stale-while-revalidate: returns stale value immediately while refreshing in background.
- Tag-based invalidation: invalidate groups of entries with a single
invalidateTag()call. - Three built-in eviction strategies: LRU, LFU, FIFO.
- Abstract
CacheStore<K, V>interface for custom storage backends (Hive, SharedPreferences, etc.). CacheStatswith hit rate, miss rate, eviction count and revalidation count.- Pure Dart — no Flutter dependency, works in Flutter apps, Dart server and CLI.