Modules

klevukmcsettings

2min

KlevuKMCSettings(ignoreCache?, cacheLength?): Promise<{ banner?: KMCBannerRootObject ; maps?: KMCMapsRootObject ; root?: KMCRootObject }>

Fetches KMC settings from server. Caches data for a day.

Parameters

Name

Type

Default value

Description

ignoreCache?

boolean

undefined

If true, will ignore cache and fetch data from server

cacheLength

number

ONE_DAY

How long to cache data in milliseconds

Returns

Promise<{ banner?: KMCBannerRootObject ; maps?: KMCMapsRootObject ; root?: KMCRootObject }>

Defined in

Updated 25 Mar 2024
Did this page help you?