(domainId: string)
| 19 | let domainInfoPromise: Promise<Record<string, any>> | null = null; |
| 20 | |
| 21 | async function readDomainInfoCache(domainId: string) { |
| 22 | return await (await openDB).get(domainInfoCacheStore, domainId) as DomainInfoCache | null; |
| 23 | } |
| 24 | |
| 25 | async function writeDomainInfoCache(cache: DomainInfoCache) { |
| 26 | await (await openDB).put(domainInfoCacheStore, cache); |