Ktor Write Key Values Repo Client
class KtorWriteKeyValuesRepoClient<Key : Any, Value : Any>(baseUrl: String, httpClient: <Error class: unknown class>, contentType: <Error class: unknown class>, val onNewValue: Flow<Pair<Key, Value>>, val onValueRemoved: Flow<Pair<Key, Value>>, val onDataCleared: Flow<Key>, keyTypeInfo: <Error class: unknown class>, valueTypeInfo: <Error class: unknown class>, keyToValuesMapTypeInfo: <Error class: unknown class>) : WriteKeyValuesRepo<Key, Value> (source)
Constructors
Link copied to clipboard
constructor(baseUrl: String, httpClient: <Error class: unknown class>, contentType: <Error class: unknown class>, onNewValue: Flow<Pair<Key, Value>>, onValueRemoved: Flow<Pair<Key, Value>>, onDataCleared: Flow<Key>, keyTypeInfo: <Error class: unknown class>, valueTypeInfo: <Error class: unknown class>, keyToValuesMapTypeInfo: <Error class: unknown class>)
Functions
Link copied to clipboard
fun <Key, Value> WriteKeyValuesRepo<Key, Value>.caching(kvCache: KeyValueRepo<Key, List<Value>>, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), locker: SmartRWLocker = SmartRWLocker()): FullWriteKeyValuesCacheRepo<Key, Value>
Link copied to clipboard
Link copied to clipboard
fun <Key, Value> WriteKeyValuesRepo<Key, Value>.directlyCached(kvCache: KeyValueRepo<Key, List<Value>>, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), locker: SmartRWLocker = SmartRWLocker()): DirectFullWriteKeyValuesCacheRepo<Key, Value>
Link copied to clipboard
Link copied to clipboard
inline fun <FromKey, FromValue, ToKey, ToValue> WriteKeyValuesRepo<ToKey, ToValue>.withMapper(mapper: MapperRepo<FromKey, FromValue, ToKey, ToValue>): WriteKeyValuesRepo<FromKey, FromValue>
inline fun <FromKey, FromValue, ToKey, ToValue> WriteKeyValuesRepo<ToKey, ToValue>.withMapper(noinline keyFromToTo: suspend FromKey.() -> ToKey = { this as ToKey }, noinline valueFromToTo: suspend FromValue.() -> ToValue = { this as ToValue }, noinline keyToToFrom: suspend ToKey.() -> FromKey = { this as FromKey }, noinline valueToToFrom: suspend ToValue.() -> FromValue = { this as FromValue }): WriteKeyValuesRepo<FromKey, FromValue>