We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e09820 commit 6c019d1Copy full SHA for 6c019d1
src/lib/proof-system/cache.ts
@@ -50,6 +50,10 @@ type Cache = {
50
* but could just be a cache miss, or file system permissions incompatible with writing data.
51
*/
52
debug?: boolean;
53
+ /**
54
+ * The directory where cache files are stored. Only applicable for file system caches.
55
+ */
56
+ cacheDirectory?: string;
57
};
58
59
const cacheHeaderVersion = 1;
@@ -185,6 +189,7 @@ const FileSystem = (cacheDirectory: string, debug?: boolean): Cache => ({
185
189
},
186
190
canWrite: jsEnvironment === 'node',
187
191
debug,
192
+ cacheDirectory
188
193
});
194
195
const FileSystemDefault = FileSystem(cacheDir('o1js'));
0 commit comments