跳到主要内容

RxDBReplayOptions

Defined in: packages/rxdb-plugin-replay/src/options.ts:32

rxdb.use(rxDBPluginReplay, options) 的选项。

Properties​

createRecordingDb​

readonly createRecordingDb: ReplayRecordingDbFactory;

Defined in: packages/rxdb-plugin-replay/src/options.ts:34

录制库工厂,必填。见 ReplayRecordingDbFactory。


flush?​

readonly optional flush?: object;

Defined in: packages/rxdb-plugin-replay/src/options.ts:43

事件落库节奏:先到哪个条件就冲刷一次。

intervalMs?​

readonly optional intervalMs?: number;

最长缓冲时间。@defaultValue 1000

maxEvents?​

readonly optional maxEvents?: number;

最多缓冲条数。@defaultValue 200


limits?​

readonly optional limits?: object;

Defined in: packages/rxdb-plugin-replay/src/options.ts:36

体积上限,按 JSON.stringify 后的 UTF-8 字节计。超限绝不自动删除旧数据。

sessionBytes?​

readonly optional sessionBytes?: number;

单会话上限;超出时该会话停止录制并标为 truncated。@defaultValue 16 MiB

storeBytes?​

readonly optional storeBytes?: number;

录制库总量上限;达到后拒绝开始新会话。必须 ≥ sessionBytes。@defaultValue 128 MiB


record?​

readonly optional record?: RxDBReplayRecordOptions;

Defined in: packages/rxdb-plugin-replay/src/options.ts:50

脱敏 / 屏蔽选项,maskAllInputs 默认 true。