CacheHandler constructor

CacheHandler({
  1. required LoggingOptions loggingOptions,
  2. required CacheOptions cacheOptions,
})

Implementation

CacheHandler({required this.loggingOptions, required this.cacheOptions}) {
  _storage = cacheOptions.useSecureStorage
      ? SecureStorageRepositoryImpl(
          keyPrefix: RestApiClientKeys.cachedStorageKey,
          migrationBoxKey: RestApiClientKeys.migration_cachedStorageKey,
        )
      : StorageRepositoryImpl(
          keyPrefix: RestApiClientKeys.cachedStorageKey,
          migrationBoxKey: RestApiClientKeys.migration_cachedStorageKey,
        );
}