CacheHandler constructor

CacheHandler({
  1. required LoggingOptions loggingOptions,
  2. 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,
        );
}