# RedisLike (/docs/auth/api/interfaces/RedisLike)



[@kysoql/auth](/docs/auth/api) / RedisLike

Minimal Redis interface required by the Redis refresh-token store.

## Methods [#methods]

<a id="api-get" />

### get() [#get]

```ts
get(key): string | Promise<string | null> | null;
```

Reads a string value from Redis.

#### Parameters [#parameters]

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

#### Returns [#returns]

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

***

<a id="api-set" />

### set() [#set]

```ts
set(key, value): unknown;
```

Stores a string value in Redis.

#### Parameters [#parameters-1]

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

#### Returns [#returns-1]

`unknown`

***

<a id="api-del" />

### del() [#del]

```ts
del(key): unknown;
```

Deletes a key from Redis.

#### Parameters [#parameters-2]

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

#### Returns [#returns-2]

`unknown`
