Skip to content

API reference / @chanx-js/layers / redis / RedisPubSubChannelLayerOptions

Interface: RedisPubSubChannelLayerOptions ​

Defined in: packages/layers/src/redis/index.ts:41

Extends ​

Properties ​

hosts? ​

ts
optional hosts?: RedisHost[];

Defined in: packages/layers/src/redis/index.ts:43

Shards, in the same order as the Python side's hosts.


onError? ​

ts
optional onError?: (error) => void;

Defined in: packages/layers/src/types.ts:33

Receives errors thrown by handlers or raised while decoding. Defaults to console.error.

Parameters ​

ParameterType
errorunknown

Returns ​

void

Inherited from ​

LayerOptions.onError


prefix? ​

ts
optional prefix?: string;

Defined in: packages/layers/src/redis/index.ts:44


serializerFormat? ​

ts
optional serializerFormat?: SerializerFormat;

Defined in: packages/layers/src/redis/index.ts:45


symmetricEncryptionKeys? ​

ts
optional symmetricEncryptionKeys?: readonly (string | Uint8Array<ArrayBufferLike>)[];

Defined in: packages/layers/src/redis/index.ts:46

MIT licensed