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

Method constructor

packages/db/src/buffers/group-buffer.ts:58–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56 private redis: Redis;
57
58 constructor() {
59 super({
60 name: 'group',
61 onFlush: async () => {
62 await this.processBuffer();
63 },
64 });
65 this.redis = getRedisCache();
66 }
67
68 private getCacheKey(projectId: string, id: string) {
69 return `${this.redisCachePrefix}${projectId}:${id}`;

Callers

nothing calls this directly

Calls 2

processBufferMethod · 0.95
getRedisCacheFunction · 0.90

Tested by

no test coverage detected