korlibs
Toggle table of contents
6.1.0-SNAPSHOT
common
Target filter
common
Switch theme
Search in API
Skip to content
korlibs
korlibs-time
/
korlibs.time
/
TimedCache
Timed
Cache
class
TimedCache
<
T
:
Any
>
(
var
ttl
:
Duration
,
val
timeProvider
:
TimeProvider
=
TimeProvider
,
val
gen
:
(
)
->
T
)
Members
Constructors
Timed
Cache
Link copied to clipboard
constructor
(
ttl
:
Duration
,
timeProvider
:
TimeProvider
=
TimeProvider
,
gen
:
(
)
->
T
)
Properties
gen
Link copied to clipboard
val
gen
:
(
)
->
T
time
Provider
Link copied to clipboard
val
timeProvider
:
TimeProvider
ttl
Link copied to clipboard
var
ttl
:
Duration
value
Link copied to clipboard
var
value
:
T
Functions
get
Value
Link copied to clipboard
operator
fun
getValue
(
obj
:
Any
,
prop
:
KProperty
<
*
>
?
)
:
T
set
Value
Link copied to clipboard
operator
fun
setValue
(
obj
:
Any
,
prop
:
KProperty
<
*
>
?
,
value
:
T
)