> ## Documentation Index
> Fetch the complete documentation index at: https://colin-feat-client-cache-mode.mintlify.site/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/8976c37f79efa6b87809b884f29a1f235a8c4ad1/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/8976c37f79efa6b87809b884f29a1f235a8c4ad1/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/8976c37f79efa6b87809b884f29a1f235a8c4ad1/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/8976c37f79efa6b87809b884f29a1f235a8c4ad1/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/8976c37f79efa6b87809b884f29a1f235a8c4ad1/src/client/browser-stores.ts#L83)

#### Parameters

##### key

`string`

##### value

`string`

#### Returns

`Promise`\<`void`>

#### Implementation of

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