mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
moved reds into redis, fixed notifications prune param
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
nconf = require('nconf'),
|
||||
express = require('express'),
|
||||
connectRedis = require('connect-redis')(express),
|
||||
reds = require('reds'),
|
||||
|
||||
redis_socket_or_host = nconf.get('redis:host'),
|
||||
utils = require('./../../public/src/utils.js');
|
||||
@@ -28,6 +29,10 @@
|
||||
ttl: 60 * 60 * 24 * 30
|
||||
});
|
||||
|
||||
reds.createClient = function () {
|
||||
return reds.client || (reds.client = redisClient);
|
||||
};
|
||||
|
||||
if (nconf.get('redis:password')) {
|
||||
redisClient.auth(nconf.get('redis:password'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user