class cacheManager.CacheManager

CacheManager: Manager class for the cache This component is used to manage the cache of the Jikan API The cache isn't implemented yet, the manager only creates a cache directory and deletes it when the program exits

Constructors

CacheManager(
client: JikanClient,
options?: Partial<CacheOptions>
)

Properties

readonly
cachePath: string

Methods

get(query: APIRequestQuery): APICacheResponse | null
set(
query: APIRequestQuery,
data: JSON
): void

Usage

import { cacheManager } from ".";