summaryrefslogtreecommitdiff
path: root/node_modules/liquidjs/dist/cache/cache.d.ts
blob: 57debad0ccad008a5dfa68c887e881fbbeef950a (plain)
1
2
3
4
5
6
7
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[]>>;