> ## Documentation Index
> Fetch the complete documentation index at: https://fastmcp-ts.docs.prefect.io/llms.txt
> Use this file to discover all available pages before exploring further.

# IndexedDBStore

Defined in: [client/browser-stores.ts:40](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/client/browser-stores.ts#L40)

KeyValueStore backed by IndexedDB. Preferred when tokens should survive
outside the synchronous, size-limited localStorage (e.g. larger payloads or
stricter persistence). Opens the database per operation and closes it again.

## Implements

* [`KeyValueStore`](/api/client/type-aliases/KeyValueStore)

## Constructors

### Constructor

```ts theme={null}
new IndexedDBStore(opts?): IndexedDBStore;
```

Defined in: [client/browser-stores.ts:44](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/client/browser-stores.ts#L44)

#### Parameters

##### opts?

###### dbName?

`string`

###### storeName?

`string`

#### Returns

`IndexedDBStore`

## Methods

### delete()

```ts theme={null}
delete(key): Promise<void>;
```

Defined in: [client/browser-stores.ts:87](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/client/browser-stores.ts#L87)

#### Parameters

##### key

`string`

#### Returns

`Promise`\<`void`>

#### Implementation of

```ts theme={null}
KeyValueStore.delete
```

***

### get()

```ts theme={null}
get(key): Promise<string | null>;
```

Defined in: [client/browser-stores.ts:78](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/client/browser-stores.ts#L78)

#### Parameters

##### key

`string`

#### Returns

`Promise`\<`string` | `null`>

#### Implementation of

```ts theme={null}
KeyValueStore.get
```

***

### set()

```ts theme={null}
set(key, value): Promise<void>;
```

Defined in: [client/browser-stores.ts:83](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/client/browser-stores.ts#L83)

#### Parameters

##### key

`string`

##### value

`string`

#### Returns

`Promise`\<`void`>

#### Implementation of

```ts theme={null}
KeyValueStore.set
```
