MCPcopy Create free account
hub / github.com/PenguLoader/PenguLoader / set

Function set

plugins/src/preload/api/DataStore.ts:37–44  ·  view source on GitHub ↗
(key, value)

Source from the content-addressed store, hash-verified

35 },
36
37 set(key, value) {
38 if (typeof key !== 'string') {
39 return false;
40 }
41 data().set(String(key), value);
42 commit();
43 return true;
44 },
45
46 remove(key) {
47 var result = data().delete(String(key));

Callers

nothing calls this directly

Calls 3

dataFunction · 0.85
commitFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected