CreateFileCheckpointStoreOptions
createFileCheckpointStore 的选项:快照根目录 + 可选保留策略
dir: string;快照根目录(显式传入,恒不隐式扫用户目录);布局 <dir>/<sessionId>/<checkpointId>.json
optional max?: number;同会话快照数上限;到顶按时间序淘汰最旧,不分 trigger(缺省不限)。= retention.max 别名(同给时 retention 优先)
retention?
Section titled “retention?”optional retention?: CheckpointRetention;保留策略:max / maxAgeDays 并集,kernel 在写后施行;刚写入者恒保留
本文是否有帮助?
感谢反馈,我们会持续改进这篇文章。