콘텐츠로 이동

CreateFileCheckpointStoreOptions

이 콘텐츠는 아직 번역되지 않았습니다.

createFileCheckpointStore 的选项:快照根目录 + 可选保留策略

dir: string;

快照根目录(显式传入,恒不隐式扫用户目录);布局 <dir>/<sessionId>/<checkpointId>.json


optional max?: number;

同会话快照数上限;到顶按时间序淘汰最旧,不分 trigger(缺省不限)。= retention.max 别名(同给时 retention 优先)


optional retention?: CheckpointRetention;

保留策略:max / maxAgeDays 并集,kernel 在写后施行;刚写入者恒保留