Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(storage): fix unstorage links #2101

Merged
merged 1 commit into from
Jan 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/content/1.guide/4.storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ icon: ri:database-2-line

Nitro provides a built-in storage layer that can abstract filesystem or database or any other data source.

`useStorage()` is an instance of [createStorage](https://unstorage.unjs.io/usage) using the [memory driver](https://unstorage.unjs.io/drivers/memory).
`useStorage()` is an instance of [createStorage](https://unstorage.unjs.io/getting-started/usage) using the [memory driver](https://unstorage.unjs.io/drivers/memory).

**Example:** Simple (in memory) operations

Expand All @@ -19,7 +19,7 @@ await useStorage('test').setItem('foo', { hello: 'world' })
await useStorage('test').getItem('foo')
```

See [Unstorage](https://unstorage.unjs.io/usage) for detailed usage.
See [Unstorage](https://unstorage.unjs.io/getting-started/usage) for detailed usage.

## Mountpoints

Expand Down Expand Up @@ -121,7 +121,7 @@ await useStorage().setItem('redis:foo', { hello: 'world' })
await useStorage().getItem('redis:foo')
```

Usage with [generics](https://unstorage.unjs.io/usage#type-inference):
Usage with [generics](https://unstorage.unjs.io/getting-started/usage#generic-types):

```ts
await useStorage().getItem<string>('foo')
Expand Down
Loading