enhance(backend): 設定ファイルでioredisの全てのオプションを指定可能に

This commit is contained in:
tamaina 2023-07-20 09:57:37 +00:00
parent 47b684100d
commit 8a0a54700c
6 changed files with 19 additions and 0 deletions

View file

@ -20,6 +20,7 @@ export function baseQueueOptions(config: Config, queueName: typeof QUEUE[keyof t
family: config.redisForJobQueue.family == null ? 0 : config.redisForJobQueue.family,
password: config.redisForJobQueue.pass,
db: config.redisForJobQueue.db ?? 0,
...(config.redisForJobQueue.extra ?? {}),
},
prefix: config.redisForJobQueue.prefix ? `${config.redisForJobQueue.prefix}:queue:${queueName}` : `queue:${queueName}`,
};