(item: Zotero.Item | { key: string }, key: string)
| 29 | } |
| 30 | |
| 31 | get(item: Zotero.Item | { key: string }, key: string) { |
| 32 | if (this.cache == undefined) { return } |
| 33 | return (this.cache[item.key] ??= {})[key] |
| 34 | } |
| 35 | |
| 36 | async set(item: Zotero.Item | { key: string }, key: string, value: any) { |
| 37 | await this.lock.promise; |
no outgoing calls
no test coverage detected