trixnity-client
3.6.1
common
trixnity-client
/
net.folivo.trixnity.client.store.cache
/
MinimalRepositoryStateFlowCache
/
update
update
suspend
fun
update
(
key
:
K
,
persistIntoRepository
:
Boolean
=
true
,
isContainedInCache
:
suspend
(
cacheValue
:
V
?
)
->
Boolean
=
{ it != null }
,
onPersist
:
suspend
(
newValue
:
V
?
)
->
Unit
=
{}
,
updater
:
suspend
(
oldValue
:
V
?
)
->
V
?
)