Interface: RedisConfig
Redis connection configuration used by the manager when
StateStorageTypeis set toredis.
RedisConfigextendsioredisRedisOptionsdirectly, so the full ioredis configuration surface is available. The only field added on top isprefix.
Property Type Description Optional prefixstring Prefix applied to all Redis keys written by MagmaStream. ...all ioredisRedisOptions— host,port,password,db, TLS, cluster config, etc. are inherited.—
Example:
stateStorage: {
type: StateStorageType.Redis,
redisConfig: {
host: "localhost",
port: 6379,
password: "secret",
db: 0,
prefix: "magmastream:",
},
}