aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2015-05-12 14:31:54 +0900
committerKazuki Yamaguchi <k@rhe.jp>2015-05-12 14:31:54 +0900
commit2c873c29d8d285dd3a4c5ebf752b0965d7080508 (patch)
tree34f33eda22bd77ff4560bc0190fdd6ba20b7b5b8
parente4d1686cbd1e59ab968675166ae25a7891b39f1a (diff)
downloadaclog-2c873c29d8d285dd3a4c5ebf752b0965d7080508.tar.gz
dalli does not need colon after namespace
-rw-r--r--config/environments/development.rb2
-rw-r--r--config/environments/production.rb2
-rw-r--r--worker_node/lib/event_channel.rb2
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