UNPKG

@newdash/newdash

Version:

javascript/typescript utility library

8 lines (7 loc) 687 B
import { CachedClass, CachedFunction, CachedObject, CacheItOptions } from "./cacheIt"; import { TTLCacheProviderParam } from "./cacheProvider"; import { Class, GeneralFunction } from "./types"; export declare function cacheItTTL<T extends GeneralFunction>(obj: T, options?: CacheItOptions<TTLCacheProviderParam>): CachedFunction<T>; export declare function cacheItTTL<T extends Class>(obj: T, options?: CacheItOptions<TTLCacheProviderParam>): CachedClass<T>; export declare function cacheItTTL<T extends object>(obj: T, options?: CacheItOptions<TTLCacheProviderParam>): CachedObject<T>; export declare function cacheItTTL(obj: any, options?: CacheItOptions<TTLCacheProviderParam>): any;