diff --git a/repos/cache/src/commonMain/kotlin/dev/inmo/micro_utils/repos/cache/full/FullCRUDCacheRepo.kt b/repos/cache/src/commonMain/kotlin/dev/inmo/micro_utils/repos/cache/full/FullCRUDCacheRepo.kt index 080a5a00a46..f5b55e92148 100644 --- a/repos/cache/src/commonMain/kotlin/dev/inmo/micro_utils/repos/cache/full/FullCRUDCacheRepo.kt +++ b/repos/cache/src/commonMain/kotlin/dev/inmo/micro_utils/repos/cache/full/FullCRUDCacheRepo.kt @@ -103,7 +103,7 @@ open class FullCRUDCacheRepo( } fun CRUDRepo.fullyCached( - kvCache: FullKVCache, + kvCache: FullKVCache = FullKVCache(), scope: CoroutineScope = CoroutineScope(Dispatchers.Default), idGetter: (ObjectType) -> IdType ) = FullCRUDCacheRepo(this, kvCache, scope, idGetter) diff --git a/repos/cache/src/commonMain/kotlin/dev/inmo/micro_utils/repos/cache/full/FullKeyValueCacheRepo.kt b/repos/cache/src/commonMain/kotlin/dev/inmo/micro_utils/repos/cache/full/FullKeyValueCacheRepo.kt index 4b976b75e29..39e96edc1a8 100644 --- a/repos/cache/src/commonMain/kotlin/dev/inmo/micro_utils/repos/cache/full/FullKeyValueCacheRepo.kt +++ b/repos/cache/src/commonMain/kotlin/dev/inmo/micro_utils/repos/cache/full/FullKeyValueCacheRepo.kt @@ -118,7 +118,7 @@ open class FullKeyValueCacheRepo( } fun KeyValueRepo.fullyCached( - kvCache: FullKVCache, + kvCache: FullKVCache = FullKVCache(), scope: CoroutineScope = CoroutineScope(Dispatchers.Default) ) = FullKeyValueCacheRepo(this, kvCache, scope) diff --git a/repos/cache/src/commonMain/kotlin/dev/inmo/micro_utils/repos/cache/full/FullKeyValuesCacheRepo.kt b/repos/cache/src/commonMain/kotlin/dev/inmo/micro_utils/repos/cache/full/FullKeyValuesCacheRepo.kt index ae2e6be1cf0..c2ecb6679d3 100644 --- a/repos/cache/src/commonMain/kotlin/dev/inmo/micro_utils/repos/cache/full/FullKeyValuesCacheRepo.kt +++ b/repos/cache/src/commonMain/kotlin/dev/inmo/micro_utils/repos/cache/full/FullKeyValuesCacheRepo.kt @@ -160,7 +160,7 @@ open class FullKeyValuesCacheRepo( } fun KeyValuesRepo.fullyCached( - kvCache: FullKVCache>, + kvCache: FullKVCache> = FullKVCache(), scope: CoroutineScope = CoroutineScope(Dispatchers.Default) ) = FullKeyValuesCacheRepo(this, kvCache, scope)