summaryrefslogtreecommitdiff
path: root/lib/gitlab/redis.rb
diff options
context:
space:
mode:
authorGabriel Mazetto <gabriel@gitlab.com>2016-10-25 15:50:41 +0200
committerGabriel Mazetto <gabriel@gitlab.com>2016-10-26 05:02:47 +0200
commitf9126fbe0a73aa6d8d61be2eb249260fa29ac461 (patch)
tree933146f3919db0197dc3e1b8103930fd0f585816 /lib/gitlab/redis.rb
parentea8aa34b55f9029a823c6210258f8552fcaababe (diff)
downloadgitlab-ce-f9126fbe0a73aa6d8d61be2eb249260fa29ac461.tar.gz
Updated mail_room and added sentinel support to Reply by Email21645-mail_room_sentinel
Diffstat (limited to 'lib/gitlab/redis.rb')
-rw-r--r--lib/gitlab/redis.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/gitlab/redis.rb b/lib/gitlab/redis.rb
index c649da8c426..9226da2d6b1 100644
--- a/lib/gitlab/redis.rb
+++ b/lib/gitlab/redis.rb
@@ -63,6 +63,14 @@ module Gitlab
raw_config_hash[:url]
end
+ def sentinels
+ raw_config_hash[:sentinels]
+ end
+
+ def sentinels?
+ sentinels && !sentinels.empty?
+ end
+
private
def redis_store_options