MCPcopy
hub / github.com/omkarcloud/botasaurus / put

Method put

js/botasaurus-js/src/cache.ts:141–145  ·  view source on GitHub ↗
(func: Function | string, keyData: any, data: any)

Source from the content-addressed store, hash-verified

139 }
140
141 static put(func: Function | string, keyData: any, data: any): void {
142 _createCacheDirectoryIfNotExists(func);
143 const path = _getCachePath(func, keyData);
144 writeJson(data, path);
145 }
146
147 static hash(data: any): string {
148 return _hash(data);

Callers 1

task.jsFile · 0.45

Calls 3

writeJsonFunction · 0.90
_getCachePathFunction · 0.85

Tested by

no test coverage detected