Skip to content

Commit 9b9a991

Browse files
Apply suggestions from code review
Co-authored-by: Lambros Petrou <[email protected]>
1 parent 48e79c0 commit 9b9a991

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/content/partials/durable-objects/api-storage-introduction.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ its results are atomic and isolated from all other storage operations, even when
2323
accessing multiple key-value pairs.
2424

2525
<sup>2</sup> KV API methods like `get()`, `put()`, `delete()`, or `list()` store
26-
data in a hidden SQLite table `__cf_kv`. Note that you will be able view this table when listing all tables, you will not be able to query it.
26+
data in a hidden SQLite table `__cf_kv`. Note that you will be able to view this table when listing all tables, but you will not be able to access it.
2727

2828
<sup>3</sup> SQLite-backed Durable Objects also use [synchronous KV API methods](/durable-objects/api/sqlite-storage-api/#synchronous-kv-api) using `ctx.storage.kv`, whereas KV-backed Durable Objects only provide [asynchronous KV API methods](/durable-objects/api/legacy-kv-storage-api/#asynchronous-kv-api).
2929
</Details>

src/content/partials/durable-objects/api-sync-kv.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {Type, MetaInfo} from "~/components";
66

77
### `get`
88

9-
- <code>ctx.storage.kv.get(key <Type text="string" />, options <Type text="Object" />{" "}<MetaInfo text="optional" />)</code>: <Type text="Any, undefined" />
9+
- <code>ctx.storage.kv.get(key <Type text="string" />)</code>: <Type text="Any, undefined" />
1010
- Retrieves the value associated with the given key. The type of the returned value will be whatever was previously written for the key, or undefined if the key does not exist.
1111

1212
### `put`

src/content/partials/durable-objects/recommend-sqlite-do.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
:::note[Recommended SQLite-backed Durable Objects]
66
Cloudflare recommends all new Durable Object namespaces use the [SQLite storage backend](/durable-objects/best-practices/access-durable-objects-storage/#create-sqlite-backed-durable-object-class). These Durable Objects can continue to use storage [key-value API](/durable-objects/api/sqlite-storage-api/#synchronous-kv-api).
77

8-
Additionally, SQLite-backed Durable Objects allow you to store more types of data (such as tables), and offers Point In Time Recovery API which can restore a Durable Object's embedded SQLite database contents (both SQL data and key-value data) to any point in the past 30 days.
8+
Additionally, SQLite-backed Durable Objects allow you to store more types of data (such as tables), and offer Point In Time Recovery API which can restore a Durable Object's embedded SQLite database contents (both SQL data and key-value data) to any point in the past 30 days.
99

1010
The [key-value storage backend](/durable-objects/reference/durable-objects-migrations/#create-durable-object-class-with-key-value-storage) remains for backwards compatibility, and a migration path from KV storage backend to SQLite storage backend for existing Durable Object namespaces will be available in the future.
1111
:::

0 commit comments

Comments
 (0)