Skip to content

Commit

Permalink
docs(storage): fix unstorage links
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperkronborg committed Jan 19, 2024
1 parent 7d3ca94 commit c7555bc
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit c7555bc

Please sign in to comment.