syncache 0.1.1
syncache: ^0.1.1 copied to clipboard
An offline-first cache and sync engine for Dart with optimistic mutations, reactive streams, and pluggable storage.
0.1.1 #
- Add
Policy.cacheAndRefresh- returns cached data immediately and always refreshes in background (unlikestaleWhileRefreshwhich only refreshes when expired)
0.1.0 #
- Initial release
- Core caching with five policies: offlineFirst, cacheOnly, networkOnly, refresh, staleWhileRefresh
- Reactive streams via
watch()andwatchWithMeta() - Optimistic mutations with automatic background sync
- Tag-based cache invalidation
- Pattern-based cache invalidation (glob support)
- Request deduplication for concurrent fetches
- Retry with exponential backoff
- Cancellation token support
- Scoped caches with key prefixing
- Parallel and dependency-graph prefetching
- Observer pattern for logging and analytics
- MemoryStore and SharedMemoryStore implementations