resource_storage 1.0.2 copy "resource_storage: ^1.0.2" to clipboard
resource_storage: ^1.0.2 copied to clipboard

Base classes to implement resource storage for [cached_resource](https://pub.dev/packages/cached_resource) package.

Resource Storage #

pub package

Base classes to implement resource storage for cached_resource package.

Components #

  1. ResourceStorage: base class to implement resource storage.
  2. CacheEntry: base class that holds cached value and store timestamp.
  3. ResourceStorageProvider: interface for resource storage factory.
  4. StorageDecoder: interface for persistent storage decoding.
  5. StorageExecutor: interface for task executor that can be provided externally and its simple implementation syncStorageExecutor.
  6. TimestampProvider: helper class to use in tests for mocking of timestamp.
  7. Logger: base logger interface.
  8. JsonStorageAdapter: helper class for toJson/fromJson conversion using provided executor.
0
likes
160
pub points
5%
popularity

Publisher

unverified uploader

Base classes to implement resource storage for [cached_resource](https://pub.dev/packages/cached_resource) package.

Repository (GitHub)
View/report issues

Topics

#storage #cache

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on resource_storage