MCPcopy Create free account
hub / github.com/MALSync/MALSync / fullState

Method fullState

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

Source from the content-addressed store, hash-verified

50 }
51
52 async fullState() {
53 const value = await this.getStorage();
54 const hasValue = this.containsValue(value) && this.refetchTtlValid(value);
55 const isValid = this.ttlValid(value);
56 return {
57 value,
58 hasValue,
59 isValid,
60 refetch: hasValue && !isValid,
61 };
62 }
63
64 async getValue(): Promise<T | null> {
65 const value = await this.getStorage();

Callers 1

executeFunction · 0.80

Calls 4

getStorageMethod · 0.95
containsValueMethod · 0.95
refetchTtlValidMethod · 0.95
ttlValidMethod · 0.95

Tested by

no test coverage detected