Skip to content

Commit 503a9ee

Browse files
committed
Minor corrections.
1 parent 8464c55 commit 503a9ee

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/content/docs/durable-objects/api/storage-api.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ import { Render, Type, MetaInfo, GlossaryTooltip } from "~/components";
99

1010
The Durable Object Storage API allows <GlossaryTooltip term="Durable Object">Durable Objects</GlossaryTooltip> to access transactional and strongly consistent storage. A Durable Object's attached storage is private to its unique instance and cannot be accessed by other objects.
1111

12+
:::note[Scope of Durable Object storage]
13+
Note that Durable Object storage is scoped by individual <GlossaryTooltip term="Durable Object">Durable Objects</GlossaryTooltip>.
14+
15+
- An account can have many Durable Object <GlossaryTooltip term="namespace">namespaces</GlossaryTooltip>.
16+
- A namespace can have many Durable Objects.
17+
18+
However, storage is scoped per individual Durable Object.
19+
:::
20+
1221
Durable Objects gain access to a persistent Durable Object Storage API via `ctx.storage`, on the `ctx` parameter passed to the Durable Object constructor.
1322

1423
While access to a Durable Object is single-threaded, request executions can still interleave with each other when they wait on I/O, such as when waiting on the promises returned by persistent storage methods or `fetch()` requests.

0 commit comments

Comments
 (0)