diff --git a/changelog.md b/changelog.md index 7456c62..26e6de6 100644 --- a/changelog.md +++ b/changelog.md @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ### Added +## 1.0.0-preview4 - 2020-07-27 + +### Added + +- [#28](https://github.com/Azure/Microsoft.Extensions.Caching.Cosmos/pull/28) Added CosmosCacheOptions.RetrySlidingExpirationUpdates to disable write retries during Get operations for highly concurrent stale item scenarios. + ## 1.0.0-preview3 - 2020-07-20 ### Fixed diff --git a/src/CosmosCacheOptions.cs b/src/CosmosCacheOptions.cs index 5051713..b8c2d86 100644 --- a/src/CosmosCacheOptions.cs +++ b/src/CosmosCacheOptions.cs @@ -52,8 +52,10 @@ public class CosmosCacheOptions : IOptions /// Gets or sets a value indicating whether to retry failed updates after a Get to an item with sliding expiration. /// /// - /// This can be useful for applications with high frequency reads on the same cache item. + /// This can be useful for applications with high frequency reads on the same cache item that does not change. + /// Turning this feature off for cache items that change constantly can lead to dirty reads. /// + /// Default value is true. public bool RetrySlidingExpirationUpdates { get; set; } = true; /// diff --git a/src/CosmosDistributedCache.csproj b/src/CosmosDistributedCache.csproj index e123bd5..930df55 100644 --- a/src/CosmosDistributedCache.csproj +++ b/src/CosmosDistributedCache.csproj @@ -7,7 +7,7 @@ $([System.DateTime]::Now.ToString(yyyyMMdd)) en-US 1.0.0 - preview3 + preview4 $(ClientVersion) $(ClientVersion)-$(VersionSuffix) $(ClientVersion)