mirror of
				https://github.com/InsanusMokrassar/MicroUtils.git
				synced 2025-11-04 06:00:22 +00:00 
			
		
		
		
	add defauult value to kvCache in fullyCached
This commit is contained in:
		@@ -103,7 +103,7 @@ open class FullCRUDCacheRepo<ObjectType, IdType, InputValueType>(
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
fun <ObjectType, IdType, InputType> CRUDRepo<ObjectType, IdType, InputType>.fullyCached(
 | 
			
		||||
    kvCache: FullKVCache<IdType, ObjectType>,
 | 
			
		||||
    kvCache: FullKVCache<IdType, ObjectType> = FullKVCache(),
 | 
			
		||||
    scope: CoroutineScope = CoroutineScope(Dispatchers.Default),
 | 
			
		||||
    idGetter: (ObjectType) -> IdType
 | 
			
		||||
) = FullCRUDCacheRepo(this, kvCache, scope, idGetter)
 | 
			
		||||
 
 | 
			
		||||
@@ -118,7 +118,7 @@ open class FullKeyValueCacheRepo<Key,Value>(
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
fun <Key, Value> KeyValueRepo<Key, Value>.fullyCached(
 | 
			
		||||
    kvCache: FullKVCache<Key, Value>,
 | 
			
		||||
    kvCache: FullKVCache<Key, Value> = FullKVCache(),
 | 
			
		||||
    scope: CoroutineScope = CoroutineScope(Dispatchers.Default)
 | 
			
		||||
) = FullKeyValueCacheRepo(this, kvCache, scope)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -160,7 +160,7 @@ open class FullKeyValuesCacheRepo<Key,Value>(
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
fun <Key, Value> KeyValuesRepo<Key, Value>.fullyCached(
 | 
			
		||||
    kvCache: FullKVCache<Key, List<Value>>,
 | 
			
		||||
    kvCache: FullKVCache<Key, List<Value>> = FullKVCache(),
 | 
			
		||||
    scope: CoroutineScope = CoroutineScope(Dispatchers.Default)
 | 
			
		||||
) = FullKeyValuesCacheRepo(this, kvCache, scope)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user