UNPKG

node-ts-cache

Version:

Simple and extensible caching module supporting decorators

7 lines (6 loc) 240 B
import { ICacheItem } from "../cache-container"; export interface IStorage { getItem(key: string): Promise<ICacheItem | undefined>; setItem(key: string, content: ICacheItem | undefined): Promise<void>; clear(): Promise<void>; }