update redis key schema for cluster

This commit is contained in:
Henry Oswald 2019-02-01 19:42:14 +00:00
parent 38dbea4b0e
commit 6a3506aed9

View file

@ -24,15 +24,15 @@ module.exports =
port: process.env['REDIS_PORT'] or 6379
password: process.env["REDIS_PASSWORD"] or ""
key_schema:
historyLock: ({doc_id}) -> "HistoryLock:#{doc_id}"
historyIndexLock: ({project_id}) -> "HistoryIndexLock:#{project_id}"
historyLock: ({doc_id}) -> "HistoryLock:{#{doc_id}}"
historyIndexLock: ({project_id}) -> "HistoryIndexLock:{#{project_id}}"
history:
host: process.env["REDIS_HOST"] or "localhost"
port: process.env['REDIS_PORT'] or 6379
password: process.env["REDIS_PASSWORD"] or ""
key_schema:
uncompressedHistoryOps: ({doc_id}) -> "UncompressedHistoryOps:#{doc_id}"
docsWithHistoryOps: ({project_id}) -> "DocsWithHistoryOps:#{project_id}"
uncompressedHistoryOps: ({doc_id}) -> "UncompressedHistoryOps:{#{doc_id}}"
docsWithHistoryOps: ({project_id}) -> "DocsWithHistoryOps:{#{project_id}}"
trackchanges:
s3: