Skip to content

Commit

Permalink
thomasgauvin: nit
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasgauvin committed Sep 23, 2024
1 parent 5667932 commit db74104
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/content/docs/kv/api/read-key-value-pairs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ Metadata is a serializable value you append to each KV entry.
#### Response
- `response`: `Promise<{
value: string | Object | ArrayBuffer | ReadableStream | null,
metadata: string | null
}>`
value: string | Object | ArrayBuffer | ReadableStream | null,
metadata: string | null
}>`
- An object containing the value and the metadata for the requested KV pair. The type of the value attribute will depend on the `type` parameter provided for the `getWithMetadata()` command as follows:
- `text`: A `string` (default).
Expand Down Expand Up @@ -151,7 +151,7 @@ Defining the length of time in seconds is useful for reducing cold read latency
:::note[Hot and cold read]
A hot read means that the data is cached on Cloudflare's edge network using the [CDN](https://developers.cloudflare.com/cache/), whether it is in a local cache or a regional cache. A cold read means that the data is not cached, so the data must be fetched from the storage backends.
A hot read means that the data is cached on Cloudflare's edge network using the [CDN](https://developers.cloudflare.com/cache/), whether it is in a local cache or a regional cache. A cold read means that the data is not cached, so the data must be fetched from the central stores.
:::
`cacheTtl` is not recommended if your data is updated often and you need to see updates shortly after they are written, because writes that happen from other global network locations will not be visible until the cached value expires.
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 @@ -21,7 +21,7 @@ Initial reads from a location do not have a cached value. Data must be read from

:::note[Hot and cold read]

A hot read means that the data is cached on Cloudflare's edge network using the [CDN](/cache/), whether it is in a local cache or a regional cache. A cold read means that the data is not cached, so the data must be fetched from the storage backends.
A hot read means that the data is cached on Cloudflare's edge network using the [CDN](https://developers.cloudflare.com/cache/), whether it is in a local cache or a regional cache. A cold read means that the data is not cached, so the data must be fetched from the central stores.
:::

![Initial reads will miss the cache and go to the nearest central data store first.](~/assets/images/kv/kv-slow-read.svg)
Expand Down

0 comments on commit db74104

Please sign in to comment.