UNPKG

nepse-api-helper

Version:

a wrapper to use nepse api easily since they set up weird restrictions

4 lines (3 loc) 219 B
import { Cache } from "./types"; export declare function getCacheItem<T>(cache: Cache<T>, key: string): T | null; export declare function setCacheItem<T>(cache: Cache<T>, key: string, data: T, ttlMs: number): Cache<T>;