super_cache 1.1.0
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:
RefreshAheadignoredrefreshAfterand started a background fetch on every cache hit. It now refreshes only oncerefreshAfterhas elapsed since the last successful fetch. - Fix: a synchronously-throwing
onMisscould leave a key permanently stuck in the in-flight map, returningnullforever. - Fix:
RefreshAheadcold misses no longer double-count cache misses. MemoryCachePressureWatchertreatsAppLifecycleState.hiddenas 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_lints6 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
CacheMetricssnapshot andmetricsStreambroadcast stream. MemoryCachePressureWatcher— responds to iOS/Android memory pressure events.CacheDebugOverlay— dev-mode Flutter widget for visualising cache state.