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

Method constructor

packages/db/src/buffers/base-buffer.ts:101–111  ·  view source on GitHub ↗
(options: {
    name: string;
    onFlush: () => Promise<void>;
    enableParallelProcessing?: boolean;
  })

Source from the content-addressed store, hash-verified

99 public addObserver: AddObserver | null = null;
100
101 constructor(options: {
102 name: string;
103 onFlush: () => Promise<void>;
104 enableParallelProcessing?: boolean;
105 }) {
106 this.logger = createLogger({ name: options.name });
107 this.name = options.name;
108 this.lockKey = `lock:${this.name}`;
109 this.onFlush = options.onFlush;
110 this.enableParallelProcessing = options.enableParallelProcessing ?? false;
111 }
112
113 /**
114 * Returns the Redis key of the buffer's main list (the queue of pending

Callers

nothing calls this directly

Calls 1

createLoggerFunction · 0.90

Tested by

no test coverage detected