Rachel
Toggle table of contents
3.6.0
common
Target filter
common
Switch theme
Search in API
Skip to content
Rachel
love.yinlin.compose.cache
/
love.yinlin.compose.cache
Package-level
declarations
Types
Types
Disk
Cache
Link copied to clipboard
class
DiskCache
<
S
:
Any
>
(
cachePath
:
File
,
key
:
(
S
)
->
Any
=
{ it }
,
fetcher
:
suspend
(
source
:
S
,
sink
:
Sink
)
->
Unit
)
Lru
State
Cache
Link copied to clipboard
class
LruStateCache
<
S
:
Any
,
V
:
Any
>
(
maxSize
:
Int
,
key
:
(
S
)
->
Any
,
fetcher
:
suspend
(
source
:
S
)
->
V
)
可追踪状态的LruCache
State
Cache
Link copied to clipboard
class
StateCache
<
S
:
Any
,
V
:
Any
>
(
key
:
(
S
)
->
Any
=
{ it }
,
fetcher
:
suspend
(
source
:
S
)
->
V
)