@foxpage/foxpage-manager
Version:
foxpage resource manager
15 lines (14 loc) • 475 B
TypeScript
import { DiskCache, DiskCacheOption } from './disk';
import { LRUCache, LRUCacheOptions } from './lru';
/**
* create lru cache
* @param maxSize max size
* @returns lru cache instance
*/
export declare const createLRUCache: <T = any>(maxSize?: number, opt?: LRUCacheOptions) => LRUCache<T>;
/**
* create disk cache
* @param opt disk cache options
* @returns disk cache instance
*/
export declare const createDiskCache: <T = any>(opt: DiskCacheOption) => DiskCache<T>;