MCPcopy
hub / github.com/MALSync/MALSync / setValue

Method setValue

src/utils/Cache.ts:69–75  ·  view source on GitHub ↗
(result: T)

Source from the content-addressed store, hash-verified

67 }
68
69 async setValue(result: T) {
70 const save = { data: result, timestamp: new Date().getTime() };
71 if (this.localStorage) {
72 return localStore.setItem(this.key, JSON.stringify(save));
73 }
74 return api.storage.set(this.key, save);
75 }
76
77 async clearValue() {
78 if (this.localStorage) {

Callers 11

getProgressTypeListFunction · 0.95
initFunction · 0.95
getRulesCacheKeyFunction · 0.95
userIdFunction · 0.95
fillRelationsMethod · 0.95
checkForFillerMethod · 0.95
executeFunction · 0.80
initFunction · 0.80
getCompleteListFunction · 0.80
getNextPageFunction · 0.80
cacheSeriesFunction · 0.80

Calls 1

setMethod · 0.65

Tested by

no test coverage detected