summaryrefslogtreecommitdiff
path: root/node_modules/liquidjs/dist/cache/cache.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/liquidjs/dist/cache/cache.d.ts')
-rw-r--r--node_modules/liquidjs/dist/cache/cache.d.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/node_modules/liquidjs/dist/cache/cache.d.ts b/node_modules/liquidjs/dist/cache/cache.d.ts
new file mode 100644
index 0000000..57debad
--- /dev/null
+++ b/node_modules/liquidjs/dist/cache/cache.d.ts
@@ -0,0 +1,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[]>>;