summaryrefslogtreecommitdiff
path: root/src/queue
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-03-09 23:44:54 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-03-09 23:44:54 +0900
commit5a0a297634afd46ba254d81b7eb6c98d2df27d04 (patch)
tree22de394d2ceff2e1747f6ba7f7392e372f28b992 /src/queue
parentFix log (diff)
downloadsharkey-5a0a297634afd46ba254d81b7eb6c98d2df27d04.tar.gz
sharkey-5a0a297634afd46ba254d81b7eb6c98d2df27d04.tar.bz2
sharkey-5a0a297634afd46ba254d81b7eb6c98d2df27d04.zip
Improve redis config
Diffstat (limited to 'src/queue')
-rw-r--r--src/queue/index.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/queue/index.ts b/src/queue/index.ts
index eccb38b5e2..83cebe247b 100644
--- a/src/queue/index.ts
+++ b/src/queue/index.ts
@@ -16,8 +16,9 @@ function initializeQueue(name: string) {
port: config.redis.port,
host: config.redis.host,
password: config.redis.pass,
- db: 1
- }
+ db: config.redis.db || 0,
+ },
+ prefix: config.redis.prefix ? `${config.redis.prefix}:queue` : 'queue'
} : null);
}