Skip to main content

super_cache 1.1.0 copy "super_cache: ^1.1.0" to clipboard
super_cache: ^1.1.0 copied to clipboard

Production-ready LRU + TTL cache for Flutter. In-memory, encrypted, and disk layers with stampede protection, repository integration, and live cache metrics.

1.1.0 #

  • Fix: RefreshAhead ignored refreshAfter and started a background fetch on every cache hit. It now refreshes only once refreshAfter has elapsed since the last successful fetch.
  • Fix: a synchronously-throwing onMiss could leave a key permanently stuck in the in-flight map, returning null forever.
  • Fix: RefreshAhead cold misses no longer double-count cache misses.
  • MemoryCachePressureWatcher treats AppLifecycleState.hidden as backgrounded.
  • Removed unused dev dependencies (mockito, build_runner, benchmark_harness, flutter_test).
  • Raised minimum SDK to Dart 3.10 / Flutter 3.38 and adopted modern language features (dot shorthands, null-aware elements, patterns, wildcards).
  • Upgraded to flutter_lints 6 and the tall-style formatter.

1.0.1 #

  • Improved README with clearer quick-start examples, badge set, and package family links.
  • Fixed pubspec description length to comply with pub.dev guidelines.
  • Fixed dart format issues in source and test files.

1.0.0 #

  • Initial stable release.
  • O(1) LRU eviction via HashMap + manual doubly-linked list.
  • Absolute and sliding TTL with background sweep timer.
  • Count-based (maxEntries) and bytes-based (maxBytes) capacity limits.
  • CacheOrchestrator — L1 → L2 → L3 layered caching with automatic read-promotion.
  • CacheRepositoryMixin — Clean Architecture integration with stampede protection.
  • Three cache policies: CacheAside, WriteThrough, RefreshAhead.
  • Live CacheMetrics snapshot and metricsStream broadcast stream.
  • MemoryCachePressureWatcher — responds to iOS/Android memory pressure events.
  • CacheDebugOverlay — dev-mode Flutter widget for visualising cache state.
2
likes
150
points
935
downloads

Documentation

API reference

Publisher

verified publisherjihedmrouki.com

Weekly Downloads

Production-ready LRU + TTL cache for Flutter. In-memory, encrypted, and disk layers with stampede protection, repository integration, and live cache metrics.

Repository (GitHub)
View/report issues

Topics

#cache #caching #lru #performance #memory

License

MIT (license)

Dependencies

flutter

More

Packages that depend on super_cache