MCPcopy Create free account
hub / github.com/Moli-X/Resources / read

Method read

Script/Hzh.js:420–436  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

418 }
419
420 read(key) {
421 this.log(`READ ${key}`);
422 if (key.indexOf("#") !== -1) {
423 key = key.substr(1);
424 if (isSurge || isLoon) {
425 return $persistentStore.read(key);
426 }
427 if (isQX) {
428 return $prefs.valueForKey(key);
429 }
430 if (isNode) {
431 return this.root[key];
432 }
433 } else {
434 return this.cache[key];
435 }
436 }
437
438 delete(key) {
439 this.log(`DELETE ${key}`);

Callers 15

getvalMethod · 0.45
readFunction · 0.45
Hzh.jsFile · 0.45
initCacheMethod · 0.45
SubOne.jsFile · 0.45
tFunction · 0.45
getAllArtifactsFunction · 0.45
_getArtifactFunction · 0.45
createArtifactFunction · 0.45
updateArtifactFunction · 0.45
_deleteArtifactFunction · 0.45
_syncToGistFunction · 0.45

Calls 2

logMethod · 0.45
indexOfMethod · 0.45

Tested by

no test coverage detected