From 2c873c29d8d285dd3a4c5ebf752b0965d7080508 Mon Sep 17 00:00:00 2001 From: Kazuki Yamaguchi Date: Tue, 12 May 2015 14:31:54 +0900 Subject: dalli does not need colon after namespace --- config/environments/development.rb | 2 +- config/environments/production.rb | 2 +- worker_node/lib/event_channel.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/environments/development.rb b/config/environments/development.rb index 620acb1..6e2c297 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -39,5 +39,5 @@ Rails.application.configure do # Raises error for missing translations # config.action_view.raise_on_missing_translations = true - config.cache_store = :dalli_store, Settings.cache.memcached, { namespace: "aclog-web:", pool_size: 5, expires_in: Settings.cache.expires_in } + config.cache_store = :dalli_store, Settings.cache.memcached, { namespace: "aclog-web", pool_size: 5, expires_in: Settings.cache.expires_in } end diff --git a/config/environments/production.rb b/config/environments/production.rb index 72c59f1..cfcf62d 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -55,7 +55,7 @@ Rails.application.configure do # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new) # Use a different cache store in production. - config.cache_store = :dalli_store, Settings.cache.memcached, { namespace: "aclog-web:", pool_size: 5, expires_in: Settings.cache.expires_in } + config.cache_store = :dalli_store, Settings.cache.memcached, { namespace: "aclog-web", pool_size: 5, expires_in: Settings.cache.expires_in } # Enable serving of images, stylesheets, and JavaScripts from an asset server. # config.action_controller.asset_host = 'http://assets.example.com' diff --git a/worker_node/lib/event_channel.rb b/worker_node/lib/event_channel.rb index 3d1c262..c1c0d9c 100644 --- a/worker_node/lib/event_channel.rb +++ b/worker_node/lib/event_channel.rb @@ -2,7 +2,7 @@ class EventChannel class << self def setup return if @dalli - @dalli = Dalli::Client.new(Settings.memcached, namespace: "aclog-worker-node:") + @dalli = Dalli::Client.new(Settings.memcached, namespace: "aclog-worker-node") @channel = EM::Channel.new end -- cgit v1.2.3