CachingBotDataStoreConsistencyPolicy 枚举
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
数据一致性策略 CachingBotDataStore
public enum CachingBotDataStoreConsistencyPolicy
type CachingBotDataStoreConsistencyPolicy =
Public Enum CachingBotDataStoreConsistencyPolicy
- 继承
-
CachingBotDataStoreConsistencyPolicy
字段
| 名称 | 值 | 说明 |
|---|---|---|
| LastWriteWins | 0 | 当数据刷新到存储时,会导致 CachingBotDataStore 设置为 ETag “*”。 因此,最后一次写入会覆盖数据。 |
| ETagBasedConsistency | 1 | 写入数据的理由CachingBotDataStore由Microsoft.Bot.Builder.Dialogs.Internals.CachingBotDataStore.inner返回。ETag 因此 FlushAsync(IAddress, CancellationToken) ,由于ETag不一致,可能会失败。 |