Directus / @directus/memory / index / BusConfigRedis
Interface: BusConfigRedis ​
Defined in: packages/memory/src/bus/types/config.ts:17
Extends ​
Properties ​
compression? ​
optional
compression:boolean
Defined in: packages/memory/src/bus/types/config.ts:30
Enable Gzip compression
Default ​
true
true
compressionMinSize? ​
optional
compressionMinSize:number
Defined in: packages/memory/src/bus/types/config.ts:40
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 ​
1000
1000
namespace ​
namespace:
string
Defined in: packages/memory/src/bus/types/config.ts:23
Used to prefix the keys in Redis
redis ​
redis:
Redis
Defined in: packages/memory/src/bus/types/config.ts:45
Existing or new Redis connection to use with this memory class
type ​
type:
"redis"
Defined in: packages/memory/src/bus/types/config.ts:18
Where the messages are sent through
local
- Local memory. Only intended for single-process instances. redis
- Redis instance