Migrate lock to be redis-cluster compatible

This commit is contained in:
James Allen
2017-05-15 10:34:24 +01:00
parent 238638b906
commit fb6e028182
7 changed files with 17 additions and 6 deletions
@@ -18,10 +18,13 @@ module.exports =
user: "sharelatex"
pass: "password"
redis:
web:
lock:
host: "localhost"
port: 6379
pass: ""
key_schema:
historyLock: ({doc_id}) -> "HistoryLock:#{doc_id}"
historyIndexLock: ({project_id}) -> "HistoryIndexLock:#{project_id}"
history:
port:"6379"
host:"localhost"