MCPcopy Create free account
hub / github.com/arktypeio/arktype / set

Method set

ark/aot/cache.ts:198–200  ·  view source on GitHub ↗
(key: string, answer: unknown, snapshot: string)

Source from the content-addressed store, hash-verified

196 }
197
198 set(key: string, answer: unknown, snapshot: string): void {
199 this.write(`a-${key}`, JSON.stringify({ snapshot, answer }))
200 }
201
202 delete(key: string): void {
203 rmSync(join(this.dir, `a-${key}.json`), { force: true })

Callers 15

getTextPositionFunction · 0.45
getErrorsInCallFunction · 0.45
getBenchInstantiationsFunction · 0.45
getFileOutsideProjectMethod · 0.45
pairMethod · 0.45
pairReferenceMethod · 0.45
argumentsOfMethod · 0.45
moduleOfMethod · 0.45
pairFlattenedMethod · 0.45
readMethod · 0.45

Calls 1

writeMethod · 0.95

Tested by 11

pairCopiesFunction · 0.36
loadNamingHolesFunction · 0.36
cloneInputFunction · 0.36
equalsFunction · 0.36
erroringScopeOfFunction · 0.36
inPlaceScopeOfFunction · 0.36
filesOfFunction · 0.36
recordingApplyFunction · 0.36
rootOfFunction · 0.36
identityOfFunction · 0.36
runFunction · 0.36