resource_storage 1.0.2 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 #
Base classes to implement resource storage for cached_resource package.
Components #
ResourceStorage
: base class to implement resource storage.CacheEntry
: base class that holds cached value and store timestamp.ResourceStorageProvider
: interface for resource storage factory.StorageDecoder
: interface for persistent storage decoding.StorageExecutor
: interface for task executor that can be provided externally and its simple implementationsyncStorageExecutor
.TimestampProvider
: helper class to use in tests for mocking of timestamp.Logger
: base logger interface.JsonStorageAdapter
: helper class for toJson/fromJson conversion using provided executor.