MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / fetchFromCache

Method fetchFromCache

packages/db/src/buffers/group-buffer.ts:72–81  ·  view source on GitHub ↗
(
    projectId: string,
    id: string
  )

Source from the content-addressed store, hash-verified

70 }
71
72 private async fetchFromCache(
73 projectId: string,
74 id: string
75 ): Promise<IGroupCacheEntry | null> {
76 const raw = await this.redis.get(this.getCacheKey(projectId, id));
77 if (!raw) {
78 return null;
79 }
80 return getSafeJson<IGroupCacheEntry>(raw);
81 }
82
83 private async fetchFromClickhouse(
84 projectId: string,

Callers 3

addMethod · 0.95
getProfileByIdFunction · 0.45

Calls 3

getCacheKeyMethod · 0.95
getSafeJsonFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected