From 6a3506aed9dd73e4f2472833bd391c917390d309 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Fri, 1 Feb 2019 19:42:14 +0000 Subject: [PATCH] update redis key schema for cluster --- services/track-changes/config/settings.defaults.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/services/track-changes/config/settings.defaults.coffee b/services/track-changes/config/settings.defaults.coffee index 3c17ee1f93..4a3ee21644 100755 --- a/services/track-changes/config/settings.defaults.coffee +++ b/services/track-changes/config/settings.defaults.coffee @@ -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: