vault_cache 0.1.2 copy "vault_cache: ^0.1.2" to clipboard
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.dart as 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, and RevalidationQueue to 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.).
  • CacheStats with hit rate, miss rate, eviction count and revalidation count.
  • Pure Dart — no Flutter dependency, works in Flutter apps, Dart server and CLI.
3
likes
160
points
114
downloads

Publisher

verified publisherdspano.dev

Weekly Downloads

A pure Dart cache library with multi-layer storage, stale-while-revalidate, tag-based invalidation, and swappable storage adapters. Zero Flutter dependencies.

Repository (GitHub)
View/report issues

Topics

#cache #storage #dart

Documentation

API reference

License

MIT (license)

More

Packages that depend on vault_cache