Interface CachedBooruSiteOptions

interface CachedBooruSiteOptions {
    autocompleteTtl?: number;
    cache?: NodeCache;
    searchTtl?: number;
}

Properties

autocompleteTtl?: number

Time to live for cached autocomplete results, in seconds. Defaults to 300.

cache?: NodeCache

An existing NodeCache instance to use instead of creating a new one, e.g. to share one cache across multiple wrapped sites.

searchTtl?: number

Time to live for cached search results, in seconds. Defaults to 300.