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