(key: string)
| 20 | } |
| 21 | |
| 22 | async get<T>(key: string): Promise<T | null> { |
| 23 | const map = stores.get(this.#path); |
| 24 | if (!map) { |
| 25 | return null; |
| 26 | } |
| 27 | return map.get(key) as T | null; |
| 28 | } |
| 29 | |
| 30 | async set(key: string, value: unknown) { |
| 31 | let map = stores.get(this.#path); |
no outgoing calls