From 428eabb1bde624c51c8af6d791df595420dcfe1b Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Mon, 30 Jan 2023 23:54:32 +0600 Subject: [PATCH] Create FallbackCacheRepo.kt --- .../dev/inmo/micro_utils/repos/cache/FallbackCacheRepo.kt | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 repos/cache/src/commonMain/kotlin/dev/inmo/micro_utils/repos/cache/FallbackCacheRepo.kt diff --git a/repos/cache/src/commonMain/kotlin/dev/inmo/micro_utils/repos/cache/FallbackCacheRepo.kt b/repos/cache/src/commonMain/kotlin/dev/inmo/micro_utils/repos/cache/FallbackCacheRepo.kt new file mode 100644 index 00000000000..a1130e8f645 --- /dev/null +++ b/repos/cache/src/commonMain/kotlin/dev/inmo/micro_utils/repos/cache/FallbackCacheRepo.kt @@ -0,0 +1,7 @@ +package dev.inmo.micro_utils.repos.cache + +/** + * Any inheritor of this should work with next logic: try to take data from their original repo, if successful - save data to internal + * [dev.inmo.micro_utils.repos.cache.cache.FullKVCache] or try to take data from that internal cache + */ +interface FallbackCacheRepo : CacheRepo