Skip to content

Commit eba2a52

Browse files
committed
update max maxstaleness value
1 parent aac4f23 commit eba2a52

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

articles/cosmos-db/how-to-configure-integrated-cache.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ You must ensure the request consistency is session or eventual. If not, the requ
7070

7171
Configure `MaxIntegratedCacheStaleness`, which is the maximum time in which you are willing to tolerate stale cached data. It is recommended to set the `MaxIntegratedCacheStaleness` as high as possible because it will increase the likelihood that repeated point reads and queries can be cache hits. If you set `MaxIntegratedCacheStaleness` to 0, your read request will **never** use the integrated cache, regardless of the consistency level. When not configured, the default `MaxIntegratedCacheStaleness` is 5 minutes.
7272

73+
>[!NOTE]
74+
> The `MaxIntegratedCacheStaleness` can be set as high as 10 years. In practice, this value is the maximum staleness and the cache may be reset sooner due to node restarts which may occur.
75+
7376
Adjusting the `MaxIntegratedCacheStaleness` is supported in these versions of each SDK:
7477

7578
| SDK | Supported versions |

articles/cosmos-db/integrated-cache.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ This is an improvement from how most caches work and allows the following additi
110110
- If you wanted to modify read consistency when using cached data, changing `MaxIntegratedCacheStaleness` will have an immediate effect on read consistency
111111

112112
> [!NOTE]
113-
> When not explicitly configured, the MaxIntegratedCacheStaleness defaults to 5 minutes.
113+
> The minimum `MaxIntegratedCacheStaleness` value is 0 and the maximum value is 10 years. When not explicitly configured, the `MaxIntegratedCacheStaleness` defaults to 5 minutes.
114114
115115
To better understand the `MaxIntegratedCacheStaleness` parameter, consider the following example:
116116

0 commit comments

Comments
 (0)