mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
add redis set
This commit is contained in:
parent
922a1a1aba
commit
92f60690f3
1 changed files with 1 additions and 0 deletions
|
@ -60,6 +60,7 @@ app.get "/debug/events", (req, res, next) ->
|
|||
res.send "debug mode will log next #{Settings.debugEvents} events"
|
||||
|
||||
rclient = require("redis-sharelatex").createClient(Settings.redis.realtime)
|
||||
rclient.set "hello", "world"
|
||||
app.get "/health_check/redis", (req, res, next) ->
|
||||
rclient.healthCheck (error) ->
|
||||
if error?
|
||||
|
|
Loading…
Reference in a new issue