toggle menu
io.github.goquati
1.3.1
jvm
switch theme
search in API
io.github.goquati
/
io.github.goquati.kotlin.util.cache
/
Cache
Cache
jvm
class
Cache
<
K
:
Any
,
V
:
Any
>
(
defaultScope
:
<Error class: unknown class>
?
,
cache
:
<Error class: unknown class>
<
K
,
V
>
)
Members
Constructors
Cache
Link copied to clipboard
jvm
constructor
(
defaultScope
:
<Error class: unknown class>
?
,
cache
:
<Error class: unknown class>
<
K
,
V
>
)
Types
Builder
Link copied to clipboard
jvm
class
Builder
<
K
:
Any
,
V
:
Any
>
Removal
Cause
Link copied to clipboard
jvm
enum
RemovalCause
:
Enum
<
Cache.RemovalCause
>
Functions
as
Deferred
Map
Link copied to clipboard
jvm
fun
asDeferredMap
(
)
:
Map
<
K
,
<Error class: unknown class>
<
V
>
>
as
Map
Link copied to clipboard
jvm
suspend
fun
asMap
(
)
:
Map
<
K
,
V
>
get
Link copied to clipboard
jvm
suspend
fun
get
(
key
:
K
,
block
:
suspend
<Error class: unknown class>
.
(
K
)
->
V
)
:
V
get
Catching
Link copied to clipboard
jvm
suspend
fun
<
E
>
getCatching
(
key
:
K
,
block
:
suspend
<Error class: unknown class>
.
(
K
)
->
<Error class: unknown class>
<
V
,
E
>
)
:
<Error class: unknown class>
<
V
,
E
>
get
If
Present
Link copied to clipboard
jvm
suspend
fun
getIfPresent
(
key
:
K
)
:
V
?
invalidate
Link copied to clipboard
jvm
fun
invalidate
(
key
:
K
)
invalidate
All
Link copied to clipboard
jvm
fun
invalidateAll
(
)
put
Link copied to clipboard
jvm
fun
put
(
key
:
K
,
value
:
V
)
:
V
suspend
fun
put
(
key
:
K
,
block
:
suspend
<Error class: unknown class>
.
(
K
)
->
V
)
:
V