cached_resource 1.2.0 copy "cached_resource: ^1.2.0" to clipboard
cached_resource: ^1.2.0 copied to clipboard

Cached resource implementation based on `NetworkBoundResource` to follow the single source of truth principle.

1.2.0 #

  • !!!BREAKING CHANGE!!! Refactor [SizePageableResource] and [OffsetPageableResource] to support metadata (total count, etc.)

1.1.7 #

  • [PAGEABLE] Add cache-related methods to [SizePageableResource] and [OffsetPageableResource]

1.1.6 #

  • Use reentrant lock to fix dead-lock in [clearAllCache]
  • [PAGEABLE] Fix InconsistentPageDataException if try to load next page if all items already

1.1.5 #

  • SizePageableResource: Fix loading next page

1.1.4 #

  • SizePageableResource: Fix resolving the next page to load

1.1.3 #

  • SizePageableResource: Breaking change: [PageableData] => [SizePageableData].
  • Fixed issue with restoring meta in [PageableData].

1.1.2 #

  • SizePageableResource: Add method [isLoadedAll] to check if all items are loaded and [canReuseCache] to check if cache can be reused after invalidate.

1.1.1 #

  • Make [PageableData] public

1.1.0 #

  • Add [SizePageableResource] for pageable resource loading by page and size

1.0.9 #

  • Allow rxdart >=0.27.0 <0.29.0

1.0.8 #

  • Add [Resource.combineWith] method
  • Fix StateError('You cannot add items while items are being added from addStream') on invalidate request while resource is already invalidating

1.0.7 #

  • Add [CacheDuration.of] resolver

1.0.6 #

  • Improve cache invalidation

1.0.5 #

  • Override == and hashCode for [OffsetPageableData]

1.0.4 #

  • Add [OffsetPageableResource]

1.0.3 #

  • Upgrade resource_storage version to 1.0.2

1.0.2 #

  • Set lover Dart sdk requirements

1.0.1 #

  • Improved performance of loading from cache.
  • Simplified interface.

1.0.0 #

  • Add initial implementation of cached_resource package
5
likes
150
points
200
downloads

Publisher

unverified uploader

Weekly Downloads

Cached resource implementation based on `NetworkBoundResource` to follow the single source of truth principle.

Repository (GitHub)
View/report issues

Topics

#storage #cache

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

collection, resource_storage, rxdart, synchronized

More

Packages that depend on cached_resource