Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Redis drivers for Fedify
Classes
An error that occurs when encoding or decoding data.
An error that occurs when decoding data.
An error that occurs when encoding data.
A codec that encodes and decodes JavaScript objects to and from JSON.
A key–value store that uses Redis as the underlying storage.
- delete(key: KvKey): Promise<void>No documentation available
- get<T = unknown>(key: KvKey): Promise<T | undefined>No documentation available
- list(prefix?: KvKey): AsyncIterable<KvStoreListEntry>
{@inheritDoc KvStore.list}
- set(): Promise<void>key: KvKey,value: unknown,options?: KvStoreSetOptions | undefinedNo documentation available
A message queue that uses Redis as the underlying storage.
- enqueue(): Promise<void>message: any,options?: MessageQueueEnqueueOptionsNo documentation available
- enqueueMany(): Promise<void>messages: readonly any[],options?: MessageQueueEnqueueOptionsNo documentation available
- listen(): Promise<void>handler: (message: any) => void | Promise<void>,options?: MessageQueueListenOptionsNo documentation available
Interfaces
Encode and decodes JavaScript objects to and from binary data.
Options for RedisKvStore class.
Options for RedisMessageQueue class.
- channelKey: RedisKey
The Pub/Sub channel key to use for the message queue.
"fedify_channel"by default. - codec: Codec
The codec to use for encoding and decoding messages in the key–value store. Defaults to JsonCodec.
- lockKey: RedisKey
The key to use for locking the message queue.
"fedify_lock"by default. - pollInterval: Temporal.Duration | Temporal.DurationLike
The poll interval for the message queue. 5 seconds by default.
- queueKey: RedisKey
The Sorted Set key to use for the delayed message queue.
"fedify_queue"by default. - workerId: string
The unique identifier for the worker that is processing messages from the queue. If this is not specified, a random identifier will be generated. This is used to prevent multiple workers from processing the same message, so it should be unique for each worker.