thesportsdb-client
Toggle table of contents
0.1.0-SNAPSHOT
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
thesportsdb-client
thesportsdb-client
/
io.github.rohang27.thesportsdb.cache
/
CachePolicy
Cache
Policy
data
class
CachePolicy
(
val
static
:
Duration
=
7.days
,
val
slow
:
Duration
=
1.days
,
val
medium
:
Duration
=
1.hours
,
val
live
:
Duration
=
Duration.ZERO
)
Time-to-live for each
Freshness
. A zero or negative TTL means "don't cache".
Members
Constructors
Cache
Policy
Link copied to clipboard
constructor
(
static
:
Duration
=
7.days
,
slow
:
Duration
=
1.days
,
medium
:
Duration
=
1.hours
,
live
:
Duration
=
Duration.ZERO
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
live
Link copied to clipboard
val
live
:
Duration
medium
Link copied to clipboard
val
medium
:
Duration
slow
Link copied to clipboard
val
slow
:
Duration
static
Link copied to clipboard
val
static
:
Duration
Functions
ttl
Link copied to clipboard
fun
ttl
(
freshness
:
Freshness
)
:
Duration