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 / BusConfigRedis

Interface: BusConfigRedis ​

Extends ​

Properties ​

compression? ​

optional compression: boolean

Enable Gzip compression

Default ​

ts
true
true

Defined in ​

packages/memory/src/bus/types/config.ts:30


compressionMinSize? ​

optional compressionMinSize: number

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

Defined in ​

packages/memory/src/bus/types/config.ts:40


namespace ​

namespace: string

Used to prefix the keys in Redis

Defined in ​

packages/memory/src/bus/types/config.ts:23


redis ​

redis: Redis

Existing or new Redis connection to use with this memory class

Defined in ​

packages/memory/src/bus/types/config.ts:45


type ​

type: "redis"

Where the messages are sent through

local - Local memory. Only intended for single-process instances. redis - Redis instance

Overrides ​

BusConfigAbstract.type

Defined in ​

packages/memory/src/bus/types/config.ts:18