mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
7 lines
307 B
CoffeeScript
7 lines
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
|