toggle menu
kandra
0.4.5
jvm
switch theme
search in API
kandra-core
/
io.kandra.core.annotations
/
CacheResult
Cache
Result
@
Target
(
allowedTargets
=
[
AnnotationTarget.CLASS
]
)
annotation class
CacheResult
(
val
ttlSeconds
:
Int
=
60
,
val
maxSize
:
Long
=
1000
)
Enables Caffeine-backed findById caching.
Members
Properties
max
Size
Link copied to clipboard
val
maxSize
:
Long
=
1000
ttl
Seconds
Link copied to clipboard
val
ttlSeconds
:
Int
=
60