mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-18 05:50:43 -07:00
feat: async cache.read()/write(), remove .has()
This commit is contained in:
Vendored
+2
-3
@@ -1,5 +1,4 @@
|
||||
export interface Cache<T> {
|
||||
write (key: string, value: T): void;
|
||||
read (key: string): T | undefined;
|
||||
has (key: string): boolean;
|
||||
write (key: string, value: T): void | Promise<void>;
|
||||
read (key: string): T | undefined | Promise<T | undefined>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user