overleaf/services/real-time/app/coffee/RedisClientManager.coffee

7 lines
309 B
CoffeeScript
Raw Normal View History

redis = require("redis-sharelatex")
2019-07-09 07:20:59 -04:00
module.exports = RedisClientManager =
createClientList: (configs...) ->
# create a dynamic list of redis clients, excluding any configurations which are not defined
2019-07-09 07:20:59 -04:00
clientList = (redis.createClient(x) for x in configs when x?)
return clientList