Readium
Toggle table of contents
androidJvm
Target filter
androidJvm
Switch theme
Search in API
Skip to content
Readium
readium-shared
/
org.readium.r2.shared.util.cache
/
getOrPut
get
Or
Put
suspend
fun
<
V
>
CacheTransaction
<
V
>
.
getOrPut
(
key
:
String
,
defaultValue
:
suspend
(
)
->
V
)
:
V
Gets the current cached value for the given
key
or creates and caches a new one.