MCPcopy Create free account
hub / github.com/Cicada000/VV / _saveToCache

Function _saveToCache

Web/script.js:164–167  ·  view source on GitHub ↗
(cacheKey, data)

Source from the content-addressed store, hash-verified

162 },
163
164 async _saveToCache(cacheKey, data) {
165 const base64Data = this._arrayBufferToBase64(data);
166 await dbStorage.setItem("indices", cacheKey, base64Data);
167 },
168
169 async preload(groupIndex, baseDir) {
170 const cacheKey = `${baseDir}/${groupIndex}`;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected