MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / readDomainInfoCache

Function readDomainInfoCache

packages/ui-default/utils/index.ts:21–23  ·  view source on GitHub ↗
(domainId: string)

Source from the content-addressed store, hash-verified

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

Callers 1

loadDomainInfoFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected