overleaf/services/real-time/app/coffee/RedisClientManager.coffee
2019-07-09 11:45:00 +01:00

7 lines
No EOL
307 B
CoffeeScript

redis = require("redis-sharelatex")
modules.export = RedisClientManager =
createClientList: (configs...)
# create a dynamic list of redis clients, excluding any configurations which are not defined
clientList = (redis.createClient(x) for x in configs when x?))
return clientList