vault_cache 0.1.0 copy "vault_cache: ^0.1.0" to clipboard
vault_cache: ^0.1.0 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.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
0
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

License

unknown (license)

More

Packages that depend on vault_cache