toggle menu
cup
1.0.0-Beta-03
common
switch theme
search in API
cup
/
net.kodein.cup.utils
/
LRUCache
LRUCache
class
LRUCache
<
K
:
Any
,
V
:
Any
>
(
val
maxCount
:
Int
,
val
maxSize
:
Long
,
initialCount
:
Int
=
maxCount / 10
)
Members
Constructors
LRUCache
Link copied to clipboard
constructor
(
maxCount
:
Int
,
maxSize
:
Long
,
initialCount
:
Int
=
maxCount / 10
)
Properties
max
Count
Link copied to clipboard
val
maxCount
:
Int
max
Size
Link copied to clipboard
val
maxSize
:
Long
Functions
get
Link copied to clipboard
fun
get
(
key
:
K
)
:
V
?
put
Link copied to clipboard
fun
put
(
key
:
K
,
value
:
V
,
size
:
Long
)