Skip to content
On this page

Directus Cloud

Everything you need to start building. Provisioned in 90 seconds. Starting at $15/month.

Get Started

This is an auto-generated document to support extension builders understand the internal packages they can utilize. To find our written guides, tutorials, and API/SDK reference, check out our main docs .

Directus / @directus/memory / index / KvConfigRedis

Interface: KvConfigRedis ​

Defined in: packages/memory/src/kv/types/config.ts:26

Extends ​

Properties ​

compression? ​

optional compression: boolean

Defined in: packages/memory/src/kv/types/config.ts:39

Enable Gzip compression

Default ​

ts
true
true

compressionMinSize? ​

optional compressionMinSize: number

Defined in: packages/memory/src/kv/types/config.ts:49

Minimum byte size of the value before compression is enabled.

There's a trade-off in size versus time spent compressing values with Gzip. For values lower than ~1k in byte size, the juice isn't worth the squeeze

Default ​

ts
1000
1000

namespace ​

namespace: string

Defined in: packages/memory/src/kv/types/config.ts:32

Used to prefix the keys


redis ​

redis: Redis | ExtendedRedis

Defined in: packages/memory/src/kv/types/config.ts:54

Existing or new Redis connection to use with this memory class


type ​

type: "redis"

Defined in: packages/memory/src/kv/types/config.ts:27

Where the data is stored

local - Local memory redis - Redis instance

Overrides ​

KvConfigAbstract.type