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 {