UNPKG

typerinth

Version:

A TypeScript library for interacting with the Modrinth API.

19 lines (18 loc) 414 B
export default interface CacheOptions { /** * The maximum age of the cache in seconds * @default 600 */ ttl?: number; /** * The maximum number of items to cache * @default 120 */ checkperiod?: number; /** * Whether the cache should be used * @default true */ useCache?: boolean; } export declare function getDefaultCacheOptions(): CacheOptions;