我正在尝试将 Bulljs 与 AWS Elasticcache redis 一起使用。我该如何设置配置?
const initAudioQueue = () => {
return new Promise((resolve, reject) => {
const audioQueue = new Queue(
'cluster', {
prefix: '{audiocluster}',
createClient: (type, config) => new Redis.Cluster([{
port: 6379,
host: '127.0.0.1',
}])
})
return resolve(audioQueue)
});
}