Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/content/docs/kv/api/write-key-value-pairs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Due to the eventually consistent nature of KV, concurrent writes to the same key

If concurrent writes are made to the same key, the last write will take precedence.

Writes are immediately visible to other requests in the same global network location, but can take up to 60 seconds (or the value of the `cacheTtl` parameter of the `get()` or `getWithMetadata()` methods) to be visible in other parts of the world.
Writes are eventually consistent, such that they can take up to 60 seconds (or the value of the `cacheTtl` parameter of the `get()` or `getWithMetadata()` methods) to be visible in other parts of the world.

Refer to [How KV works](/kv/concepts/how-kv-works/) for more information on this topic.

Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/kv/concepts/how-kv-works.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ KV does not perform like an in-memory datastore, such as [Redis](https://redis.i

## Consistency

KV achieves high performance by being eventually-consistent. At the Cloudflare global network location at which changes are made, these changes are usually immediately visible. However, this is not guaranteed and therefore it is not advised to rely on this behaviour. In other global network locations changes may take up to 60 seconds or more to be visible as their cached versions of the data time-out.
KV achieves high performance by being eventually-consistent. Writes to KV are eventually propagated and visible at all locations up to 60 seconds or more after the write as their cached versions of the data time-out.

Visibility of changes takes longer in locations which have recently read a previous version of a given key (including reads that indicated the key did not exist, which are also cached locally).

Expand Down
Loading