---
title: "Storage"
---
# Storage

Defined in: [src/core/storage/storage.ts:25](https://github.com/xdan/jodit/blob/main/src/core/storage/storage.ts#L25)

## Type Parameters

| Type Parameter | Default type |
| ------ | ------ |
| `T` | [`StorageValueType`](../modules/types.html#storagevaluetype) |

## Implements

- [`IStorage`](../interfaces/types.IStorage.html)\<`T`\>

### prefix

`readonly` **prefix**: `string` = `StorageKey`

Defined in: [src/core/storage/storage.ts:26](https://github.com/xdan/jodit/blob/main/src/core/storage/storage.ts#L26)

***

### provider

`readonly` **provider**: [`IStorage`](../interfaces/types.IStorage.html)\<`T`\>

Defined in: [src/core/storage/storage.ts:52](https://github.com/xdan/jodit/blob/main/src/core/storage/storage.ts#L52)

### set()

**set**(`key`, `value`): `this`

Defined in: [src/core/storage/storage.ts:28](https://github.com/xdan/jodit/blob/main/src/core/storage/storage.ts#L28)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `key` | `string` |
| `value` | `T` |

#### Returns

`this`

#### Implementation of

[`IStorage`](../interfaces/types.IStorage.html).[`set`](../interfaces/types.IStorage.html#set)

***

### delete()

**delete**(`key`): `this`

Defined in: [src/core/storage/storage.ts:33](https://github.com/xdan/jodit/blob/main/src/core/storage/storage.ts#L33)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `key` | `string` |

#### Returns

`this`

#### Implementation of

[`IStorage`](../interfaces/types.IStorage.html).[`delete`](../interfaces/types.IStorage.html#delete)

***

### get()

**get**\<`R`\>(`key`): `void` \| `R`

Defined in: [src/core/storage/storage.ts:38](https://github.com/xdan/jodit/blob/main/src/core/storage/storage.ts#L38)

#### Type Parameters

| Type Parameter | Default type |
| ------ | ------ |
| `R` | `T` |

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `key` | `string` |

#### Returns

`void` \| `R`

#### Implementation of

[`IStorage`](../interfaces/types.IStorage.html).[`get`](../interfaces/types.IStorage.html#get)

***

### exists()

**exists**(`key`): `boolean`

Defined in: [src/core/storage/storage.ts:42](https://github.com/xdan/jodit/blob/main/src/core/storage/storage.ts#L42)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `key` | `string` |

#### Returns

`boolean`

#### Implementation of

[`IStorage`](../interfaces/types.IStorage.html).[`exists`](../interfaces/types.IStorage.html#exists)

***

### clear()

**clear**(): `this`

Defined in: [src/core/storage/storage.ts:46](https://github.com/xdan/jodit/blob/main/src/core/storage/storage.ts#L46)

#### Returns

`this`

#### Implementation of

[`IStorage`](../interfaces/types.IStorage.html).[`clear`](../interfaces/types.IStorage.html#clear)

***

### makeStorage()

`static` **makeStorage**(`persistentOrStrategy?`, `suffix?`): [`IStorage`](../interfaces/types.IStorage.html)

Defined in: [src/core/storage/storage.ts:60](https://github.com/xdan/jodit/blob/main/src/core/storage/storage.ts#L60)

#### Parameters

| Parameter | Type | Default value |
| ------ | ------ | ------ |
| `persistentOrStrategy` | `boolean` \| [`WebStorageStrategy`](../modules/storage.html#webstoragestrategy) | `false` |
| `suffix?` | `string` | `undefined` |

#### Returns

[`IStorage`](../interfaces/types.IStorage.html)
