You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/kv/api/read-key-value-pairs.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,10 +58,10 @@ The `get()` method returns a promise you can `await` on to get the value. If the
58
58
- `type`: `"text"|"json"|"arrayBuffer"|"stream"`
59
59
- Optional. The type of the value to be returned. `text` is the default.
60
60
- `options`: `{
61
-
cacheTtl: number,
61
+
cacheTtl?: number,
62
62
type:"text"|"json"|"arrayBuffer"|"stream"
63
63
}`
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.
65
65
66
66
#### Response
67
67
@@ -91,10 +91,10 @@ Metadata is a serializable value you append to each KV entry.
91
91
- `type`: `"text"|"json"|"arrayBuffer"|"stream"`
92
92
- Optional. The type of the value to be returned. `text` is the default.
93
93
- `options`: `{
94
-
cacheTtl: number,
94
+
cacheTtl?: number,
95
95
type:"text"|"json"|"arrayBuffer"|"stream"
96
96
}`
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.
0 commit comments