Skip to content

Commit 6c019d1

Browse files
committed
improve cache
1 parent 8e09820 commit 6c019d1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lib/proof-system/cache.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ type Cache = {
5050
* but could just be a cache miss, or file system permissions incompatible with writing data.
5151
*/
5252
debug?: boolean;
53+
/**
54+
* The directory where cache files are stored. Only applicable for file system caches.
55+
*/
56+
cacheDirectory?: string;
5357
};
5458

5559
const cacheHeaderVersion = 1;
@@ -185,6 +189,7 @@ const FileSystem = (cacheDirectory: string, debug?: boolean): Cache => ({
185189
},
186190
canWrite: jsEnvironment === 'node',
187191
debug,
192+
cacheDirectory
188193
});
189194

190195
const FileSystemDefault = FileSystem(cacheDir('o1js'));

0 commit comments

Comments
 (0)