Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2016-04-07 16:42:07 +0300
committerJacob Vosmaer <contact@jacobvosmaer.nl>2016-04-07 16:42:07 +0300
commitcf669551f69edd66913d22c96cf1de1302e7990e (patch)
tree68cbc6a0e366487883d5ca8637fd4dbf0f241e63 /config/application.rb
parent3137f61a5558d1b38dd9f607263d5a21b61deb2d (diff)
Put CACHE_NAMESPACE in the Gitlab::Redis module
Diffstat (limited to 'config/application.rb')
-rw-r--r--config/application.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/config/application.rb b/config/application.rb
index 9633084d603..2e2ed48db07 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -7,8 +7,6 @@ Bundler.require(:default, Rails.env)
require_relative '../lib/gitlab/redis'
module Gitlab
- REDIS_CACHE_NAMESPACE = 'cache:gitlab'
-
class Application < Rails::Application
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
@@ -70,7 +68,7 @@ module Gitlab
end
redis_config_hash = Gitlab::Redis.redis_store_options
- redis_config_hash[:namespace] = REDIS_CACHE_NAMESPACE
+ redis_config_hash[:namespace] = Gitlab::Redis::CACHE_NAMESPACE
redis_config_hash[:expires_in] = 2.weeks # Cache should not grow forever
config.cache_store = :redis_store, redis_config_hash