klevukmcsettings
2 min
▸ 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 }>