cache_nexus 1.0.0 copy "cache_nexus: ^1.0.0" to clipboard
cache_nexus: ^1.0.0 copied to clipboard

Offline-first, debuggable data orchestration layer for Flutter. Features TTL caching, 5 cache policies, encryption, auth-aware isolation, reactive streams, offline sync, and built-in dev tools.

1.0.0 #

  • Initial release of Smart Cache
  • Two-tier storage: in-memory (MemoryCacheStorage) + persistent (HiveCacheStorage)
  • 5 cache policies: cacheFirst, networkFirst, cacheOnly, networkOnly, staleWhileRevalidate
  • TTL-based automatic cache expiration
  • Request deduplication for concurrent identical requests
  • Security layer: SecureCacheStorage with encryption + compression decorators
  • Auth-aware caching: CacheContext for user/role-based cache isolation
  • Reactive streams: watch() API with CacheNexusBuilder widget
  • Offline sync queue: SyncEngine with automatic retry on connectivity
  • Built-in dev tools: floating overlay, live event panel, stats dashboard
  • NetworkStatus connectivity detection via connectivity_plus
  • Production-safe mode: all dev features tree-shaken in release builds
  • Comprehensive test suite: 83 tests across 5 test files
1
likes
130
points
115
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

Offline-first, debuggable data orchestration layer for Flutter. Features TTL caching, 5 cache policies, encryption, auth-aware isolation, reactive streams, offline sync, and built-in dev tools.

Repository (GitHub)
View/report issues
Contributing

Topics

#cache #offline #hive #flutter #dio

License

MIT (license)

Dependencies

connectivity_plus, dio, flutter, hive, hive_flutter, path_provider

More

Packages that depend on cache_nexus