<!-- Generated by scripts/gen-docs.mts from the JSDoc in registry/. Do not edit; run `pnpm run docs`. -->

# webStorage

Storage for `createPeopleCache` in `localStorage`, or another `Storage`, under one key. A full or unreadable store leaves the cache working from memory.

```tsx
import { webStorage } from "@/lib/ouro/people-cache";
```

## Example

```tsx
const names = createPeopleCache<string>({ read: readNames, storage: webStorage("people-names") });
```

## Parameters

| Parameter | Type | Default |
| --- | --- | --- |
| `key` | `string` |  |
| `store` | `Storage` | `localStorage` |

## Returns

`PeopleCacheStorage<T>`
