diff --git a/README.md b/README.md index 4eb27dc..5f407f0 100644 --- a/README.md +++ b/README.md @@ -144,7 +144,7 @@ Persistent History Tracking Kit currently supports three transaction cleanup str // Each notification is cleaned up cleanStrategy: .byNotification(times: 1), // At least 60 seconds between cleanings -cleanStrategy: byDuration(seconds: 60), +cleanStrategy: .byDuration(seconds: 60), ``` When the cleanup policy is set to none, cleanup can be performed at the right time by generating separate cleanup instances. diff --git a/READMECN.md b/READMECN.md index b29d594..4d06589 100644 --- a/READMECN.md +++ b/READMECN.md @@ -141,7 +141,7 @@ Persistent History Tracking Kit 目前支持三种事务清理策略: // 每个通知都清理 cleanStrategy: .byNotification(times: 1), // 两次清理之间,至少间隔 60 秒 -cleanStrategy: byDuration(seconds: 60), +cleanStrategy: .byDuration(seconds: 60), ``` 当清理策略设置为 none 时,可以通过生成单独的清理实例,在合适的时机进行清理。