UNPKG

node-ts-cache

Version:

Simple and extensible caching module supporting decorators

18 lines (17 loc) 343 B
export interface ICacheItem { content: any; meta: { createdAt: number; ttl: number; }; } export interface ICachingOptions { ttl: number; isLazy: boolean; isCachedForever: boolean; calculateKey: (data: { className: string; methodName: string; args: any[]; }) => string; }