Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
54
function
valueBytes(value) {
55
try {
56
return
Buffer.byteLength(JSON.stringify(value),
'utf8'
);
57
} catch {
58
return
Number.POSITIVE_INFINITY;
59
}
60
}
61
62
function
deleteEntry(key) {
63
const
entry = _store.get(key);
Callers
1
cacheSet
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected