Skip to content

Commit

Permalink
docs(storage): fix typo (nitrojs#2639)
Browse files Browse the repository at this point in the history
  • Loading branch information
iiio2 authored Jul 31, 2024
1 parent e727afd commit 24fa444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/1.guide/4.storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Nitro has built-in integration with [unjs/unstorage](https://unstorage.unjs.io)
To use the storage layer, you can use the `useStorage()` and call `getItem(key)` to retrieve an item and `setItem(key, value)` to set an item.

```ts
// Default storage is in memory
// Default storage is in-memory
await useStorage().setItem('test:foo', { hello: 'world' })
await useStorage().getItem('test:foo')

Expand Down

0 comments on commit 24fa444

Please sign in to comment.