aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/caching.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_controller/caching.rb')
-rw-r--r--actionpack/lib/action_controller/caching.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/caching.rb b/actionpack/lib/action_controller/caching.rb
index 98dd9c9df6..c1c78147e3 100644
--- a/actionpack/lib/action_controller/caching.rb
+++ b/actionpack/lib/action_controller/caching.rb
@@ -305,13 +305,13 @@ module ActionController #:nodoc:
class DRbStore < MemoryStore #:nodoc:
def initialize(address = 'druby://localhost:9192')
- @data = DRbObject.new(nil, address)
+ @data, @mutex = DRbObject.new(nil, address), Mutex.new
end
end
class MemCacheStore < MemoryStore #:nodoc:
def initialize(address = 'localhost')
- @data = MemCache.new(address)
+ @data, @mutex = MemCache.new(address), Mutex.new
end
end