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
/
getOrTryPut
get
Or
Try
Put
suspend
fun
<
V
,
F
>
CacheTransaction
<
V
>
.
getOrTryPut
(
key
:
String
,
defaultValue
:
suspend
(
)
->
Try
<
V
,
F
>
)
:
Try
<
V
,
F
>
Gets the current cached value for the given
key
or creates and caches a new one.