Skip to content

Commit eb4692d

Browse files
authored
Update read-key-value-pairs.mdx
1 parent 1028893 commit eb4692d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/content/docs/kv/api/read-key-value-pairs.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ The `get()` method returns a promise you can `await` on to get the value. If the
5858
- `type`: `"text" | "json" | "arrayBuffer" | "stream"`
5959
- Optional. The type of the value to be returned. `text` is the default.
6060
- `options`: `{
61-
cacheTtl: number,
61+
cacheTtl?: number,
6262
type: "text" | "json" | "arrayBuffer" | "stream"
6363
}`
64-
- Optional. Object containing the `cacheTtl` and `type` properties. The `cacheTtl` property defines the length of time in seconds that a KV result is cached in the global network location it is accessed from (minimum: 60). The `type` property defines the type of the value to be returned.
64+
- Optional. Object containing the `cacheTtl` and `type` properties. The optional `cacheTtl` property defines the length of time in seconds that a KV result is cached in the global network location it is accessed from (minimum: 60). The `type` property defines the type of the value to be returned.
6565
6666
#### Response
6767
@@ -91,10 +91,10 @@ Metadata is a serializable value you append to each KV entry.
9191
- `type`: `"text" | "json" | "arrayBuffer" | "stream"`
9292
- Optional. The type of the value to be returned. `text` is the default.
9393
- `options`: `{
94-
cacheTtl: number,
94+
cacheTtl?: number,
9595
type: "text" | "json" | "arrayBuffer" | "stream"
9696
}`
97-
- Optional. Object containing the `cacheTtl` and `type` properties. The `cacheTtl` property defines the length of time in seconds that a KV result is cached in the global network location it is accessed from (minimum: 60). The `type` property defines the type of the value to be returned.
97+
- Optional. Object containing the `cacheTtl` and `type` properties. The optional `cacheTtl` property defines the length of time in seconds that a KV result is cached in the global network location it is accessed from (minimum: 60). The `type` property defines the type of the value to be returned.
9898
9999
#### Response
100100

0 commit comments

Comments
 (0)