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

Method constructor

packages/db/src/buffers/bot-buffer.ts:13–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11 private readonly redisKey = 'bot-events-buffer';
12 private redis: Redis;
13 constructor() {
14 super({
15 name: 'bot',
16 onFlush: async () => {
17 await this.processBuffer();
18 },
19 });
20 this.redis = getRedisCache();
21 }
22
23 protected getRedisListKey(): string {
24 return this.redisKey;

Callers

nothing calls this directly

Calls 2

processBufferMethod · 0.95
getRedisCacheFunction · 0.90

Tested by

no test coverage detected