UNPKG

staticql

Version:

Type-safe query engine for static content including Markdown, YAML, JSON, and more.

8 lines (7 loc) 263 B
export interface CacheProvider { get<T = unknown>(key: string): Promise<T | undefined>; set<T = unknown>(key: string, value: T): Promise<void>; has(key: string): Promise<boolean>; delete(key: string): Promise<void>; clear?(): Promise<void>; }