MultipazProject
Toggle table of contents
javaShared
Platform filter
javaShared
Switch theme
Search in API
MultipazProject
multipaz
/
org.multipaz.rpc
Package-level
declarations
Functions
Functions
cache
Link copied to clipboard
javaShared
suspend
fun
<
ResourceT
:
Any
>
BackendEnvironment
.
cache
(
clazz
:
KClass
<
ResourceT
>
,
key
:
Any
=
""
,
factory
:
suspend
(
Configuration
,
Resources
)
->
ResourceT
)
:
ResourceT
Lazily create and memoize an object that is defined by the given class and a key.
suspend
fun
<
ResourceT
:
Any
>
BackendEnvironment.Companion
.
cache
(
clazz
:
KClass
<
ResourceT
>
,
key
:
Any
=
""
,
factory
:
suspend
(
Configuration
,
Resources
)
->
ResourceT
)
:
ResourceT