CacheHandler constructor
CacheHandler({
- required LoggingOptions loggingOptions,
- required CacheOptions cacheOptions,
Implementation
CacheHandler({
required this.loggingOptions,
required this.cacheOptions,
}) {
_storage = cacheOptions.useSecureStorage
? SecureStorageRepositoryImpl(
key: RestApiClientKeys.cachedStorageKey,
logPrefix: RestApiClientKeys.cachedStorageLogPrefix,
)
: StorageRepositoryImpl(
key: RestApiClientKeys.cachedStorageKey,
logPrefix: RestApiClientKeys.cachedStorageLogPrefix,
);
}