devsite/node_modules/liquidjs/dist/cache/cache.d.ts

8 lines
324 B
TypeScript
Raw Normal View History

2024-07-08 01:49:38 +00:00
import type { Template } from '../template/template';
export interface Cache<T> {
write(key: string, value: T): void | Promise<void>;
read(key: string): T | undefined | Promise<T | undefined>;
remove(key: string): void | Promise<void>;
}
export type LiquidCache = Cache<Template[] | Promise<Template[]>>;