MCPcopy Index your code
hub / github.com/MALSync/MALSync / hasValue

Method hasValue

src/utils/Cache.ts:30–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28 }
29
30 async hasValue() {
31 const value = await this.getStorage();
32 if (this.containsValue(value) && this.ttlValid(value)) {
33 return true;
34 }
35 return false;
36 }
37
38 async hasValueAndIsNotEmpty() {
39 const value = await this.getStorage();

Callers 6

initFunction · 0.95
getRulesCacheKeyFunction · 0.95
userIdFunction · 0.95
getCachedFunction · 0.80
cacheSeriesFunction · 0.80
getSeriesFunction · 0.80

Calls 3

getStorageMethod · 0.95
containsValueMethod · 0.95
ttlValidMethod · 0.95

Tested by

no test coverage detected