Directus / @directus/memory / index / CacheConfigRedis
Interface: CacheConfigRedis ​
Extends ​
Properties ​
compression? ​
optional
compression:boolean
Enable Gzip compression
Default ​
true
true
Defined in ​
packages/memory/src/cache/types/config.ts:36
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 ​
1000
1000
Defined in ​
packages/memory/src/cache/types/config.ts:46
namespace ​
namespace:
string
Used to prefix the keys
Defined in ​
packages/memory/src/cache/types/config.ts:29
redis ​
redis:
Redis
Existing or new Redis connection to use with this memory class
Defined in ​
packages/memory/src/cache/types/config.ts:51
type ​
type:
"redis"
Where the data is stored
local
- Local memory redis
- Redis instance multi
- Multi-stage cache. In-memory as L1, Redis as L2