UNPKG

cache-layer

Version:

An abstraction for cache providers, it exposes a common interface for diferente ways of cache

7 lines 284 B
export default interface CacheContract { get<T>(key: string): Promise<T>; has(key: string): Promise<boolean>; delete(key: string): Promise<boolean>; add<T>(key: string, object: T, ttl?: number | string): Promise<boolean>; } //# sourceMappingURL=cache-contract.d.ts.map