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

Method setEntity

cli/src/cache/encryptedCache.ts:21–24  ·  view source on GitHub ↗
(key: string, data: string, tags?: string[])

Source from the content-addressed store, hash-verified

19 }
20
21 override async setEntity(key: string, data: string, tags?: string[]) {
22 const encrypted = encryptCacheValue(key, data, await this.getEncryptionKeyMaterial());
23 await super.setEntity(key, encrypted, tags);
24 }
25
26 override async getEntity(key: string) {
27 const encrypted = await super.getEntity(key);

Callers

nothing calls this directly

Calls 3

encryptCacheValueFunction · 0.90
setEntityMethod · 0.65

Tested by

no test coverage detected