From b64f2e6d32b7967a7a2f2fad2b9768c57421241c Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Mon, 30 Jan 2023 23:56:57 +0600 Subject: [PATCH] Update AutoRecacheWriteKeyValuesRepo.kt --- .../cache/fallback/keyvalues/AutoRecacheWriteKeyValuesRepo.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/repos/cache/src/commonMain/kotlin/dev/inmo/micro_utils/repos/cache/fallback/keyvalues/AutoRecacheWriteKeyValuesRepo.kt b/repos/cache/src/commonMain/kotlin/dev/inmo/micro_utils/repos/cache/fallback/keyvalues/AutoRecacheWriteKeyValuesRepo.kt index 4c57b3b7f5d..9516a16bf8f 100644 --- a/repos/cache/src/commonMain/kotlin/dev/inmo/micro_utils/repos/cache/fallback/keyvalues/AutoRecacheWriteKeyValuesRepo.kt +++ b/repos/cache/src/commonMain/kotlin/dev/inmo/micro_utils/repos/cache/fallback/keyvalues/AutoRecacheWriteKeyValuesRepo.kt @@ -6,6 +6,7 @@ import dev.inmo.micro_utils.pagination.FirstPagePagination import dev.inmo.micro_utils.pagination.utils.doForAllWithNextPaging import dev.inmo.micro_utils.repos.WriteKeyValuesRepo import dev.inmo.micro_utils.repos.cache.cache.FullKVCache +import dev.inmo.micro_utils.repos.cache.FallbackCacheRepo import dev.inmo.micro_utils.repos.set import dev.inmo.micro_utils.repos.unset import kotlinx.coroutines.CoroutineScope @@ -16,7 +17,7 @@ open class AutoRecacheWriteKeyValuesRepo( protected val originalRepo: WriteKeyValuesRepo, protected val scope: CoroutineScope, protected val kvCache: FullKVCache> = FullKVCache() -) : WriteKeyValuesRepo { +) : WriteKeyValuesRepo, FallbackCacheRepo { override val onValueRemoved: Flow> get() = originalRepo.onValueRemoved