UNPKG

xframelib

Version:

The accumulated front-end development foundation library originates from projects and serves projects.

14 lines (13 loc) 1.02 kB
import { LRUCache } from 'lru-cache'; declare function createCache(cacheKey: string, options?: any): Promise<LRUCache<{}, {}, unknown>>; declare function getCacheObject(cacheObjKey?: string): Promise<LRUCache<any, any, unknown> | undefined>; declare function set(key: string, value: any, cacheObjKey?: string): Promise<boolean>; declare function get(key: string, cacheObjKey?: string): Promise<any>; declare function remove(key: string, cacheObjKey?: string): Promise<boolean | undefined>; declare function has(key: string, cacheObjKey?: string): Promise<boolean>; declare function count(cacheObjKey?: string): Promise<number>; declare function maxSize(cacheObjKey?: string): Promise<number>; declare function peek(key: string, cacheObjKey?: string): Promise<any>; declare function clear(cacheObjKey?: string): Promise<boolean>; declare function keys(cacheObjKey?: string): Promise<Generator<any, void, unknown> | undefined>; export { clear, count, maxSize, createCache, get, getCacheObject, has, keys, peek, remove, set, };