|
|
@@ -10,7 +10,7 @@ if (config.REDIS_DISABLED === true) {
|
|
|
const client = redis.createClient({
|
|
|
host: config.REDIS_HOST || '127.0.0.1',
|
|
|
port: config.REDIS_PORT || 6379,
|
|
|
- password: config.REDIS_PASSWORD || '',
|
|
|
+ ...(config.REDIS_PASSWORD && { password: config.REDIS_PASSWORD }),
|
|
|
});
|
|
|
|
|
|
exports.get = promisify(client.get).bind(client);
|