MCPcopy
hub / github.com/MuiseDestiny/zotero-gpt / set

Method set

src/modules/localStorage.ts:36–42  ·  view source on GitHub ↗
(item: Zotero.Item | { key: string }, key: string, value: any)

Source from the content-addressed store, hash-verified

34 }
35
36 async set(item: Zotero.Item | { key: string }, key: string, value: any) {
37 await this.lock.promise;
38 (this.cache[item.key] ??= {})[key] = value
39 window.setTimeout(async () => {
40 await Zotero.File.putContentsAsync(this.filename, JSON.stringify(this.cache));
41 })
42 }
43}
44
45export default LocalStorage

Callers 4

inputListenerMethod · 0.80
getTagsMethod · 0.80
setTagsMethod · 0.80
similaritySearchFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected