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