MCPcopy Create free account
hub / github.com/dwgx/WindsurfAPI / valueBytes

Function valueBytes

src/cache.js:54–60  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

52}
53
54function valueBytes(value) {
55 try {
56 return Buffer.byteLength(JSON.stringify(value), 'utf8');
57 } catch {
58 return Number.POSITIVE_INFINITY;
59 }
60}
61
62function deleteEntry(key) {
63 const entry = _store.get(key);

Callers 1

cacheSetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected