From 681c13144a0f65e632e7417c5534a9abc5ab3872 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Mon, 30 Jan 2023 23:57:40 +0600 Subject: [PATCH] Update AutoRecacheReadKeyValuesRepo.kt --- .../cache/fallback/keyvalues/AutoRecacheReadKeyValuesRepo.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/AutoRecacheReadKeyValuesRepo.kt b/repos/cache/src/commonMain/kotlin/dev/inmo/micro_utils/repos/cache/fallback/keyvalues/AutoRecacheReadKeyValuesRepo.kt index 918f7083491..c160f61c320 100644 --- a/repos/cache/src/commonMain/kotlin/dev/inmo/micro_utils/repos/cache/fallback/keyvalues/AutoRecacheReadKeyValuesRepo.kt +++ b/repos/cache/src/commonMain/kotlin/dev/inmo/micro_utils/repos/cache/fallback/keyvalues/AutoRecacheReadKeyValuesRepo.kt @@ -14,6 +14,7 @@ import dev.inmo.micro_utils.repos.ReadKeyValuesRepo import dev.inmo.micro_utils.repos.cache.cache.FullKVCache import dev.inmo.micro_utils.repos.cache.fallback.ActionWrapper import dev.inmo.micro_utils.repos.cache.util.actualizeAll +import dev.inmo.micro_utils.repos.cache.FallbackCacheRepo import dev.inmo.micro_utils.repos.set import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.delay @@ -28,7 +29,7 @@ open class AutoRecacheReadKeyValuesRepo( protected val recacheDelay: Long = 60.seconds.inWholeMilliseconds, protected val actionWrapper: ActionWrapper = ActionWrapper.Direct, protected val idGetter: (RegisteredObject) -> Id -) : ReadKeyValuesRepo { +) : ReadKeyValuesRepo, FallbackCacheRepo { val autoUpdateJob = scope.launch { while (isActive) { runCatchingSafely {