import { App } from "../App"; export type CacheSeconds = number | ((result: T) => number); export interface ICacheEntry { /** * Cache Key, must be unique */ key: string; /** * Time to Live in seconds, after given ttl * object will be removed from cache */ ttlSeconds?: CacheSeconds; /** * Cached value */ value?: Promise; } export default class CacheService { private app; private cache; constructor(app: App); remove(key: string): any; getOrCreate(key: string, task: (cacheEntry?: ICacheEntry) => Promise): Promise; private clear; } //# sourceMappingURL=CacheService.d.ts.map