mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
11 lines
235 B
CoffeeScript
11 lines
235 B
CoffeeScript
|
module.exports =
|
||
|
|
||
|
createClient: ()->
|
||
|
if arguments[0] instanceof Array
|
||
|
client = require("redis-sentinel").createClient.apply null, arguments
|
||
|
else
|
||
|
client = require("redis").createClient.apply null, arguments
|
||
|
return client
|
||
|
|
||
|
|