MCPcopy Create free account
hub / github.com/ProtonDriveApps/sdk / flush

Method flush

cli/src/events/storage.ts:68–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66 }
67
68 async flush(): Promise<void> {
69 const filePath = eventsJsonPath(this.cacheDir);
70 const body = JSON.stringify(this.scopes, null, 2);
71 await fs.writeFile(filePath, body, 'utf8');
72 }
73
74 async clear(): Promise<void> {
75 await fs.unlink(eventsJsonPath(this.cacheDir));

Callers 3

setLatestEventIdMethod · 0.45
removeScopeMethod · 0.45
storage.test.tsFile · 0.45

Calls 1

eventsJsonPathFunction · 0.85

Tested by

no test coverage detected