mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 12:50:38 -07:00
fix: stack overflow on large number of templates, #513
This commit is contained in:
Vendored
+4
@@ -1,5 +1,9 @@
|
||||
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[]>>
|
||||
|
||||
Reference in New Issue
Block a user