Module: Switchman::ActiveSupport::Cache::ClassMethods

Defined in:
lib/switchman/active_support/cache.rb

Instance Method Summary collapse

Instance Method Details

#lookup_store(*store_options) ⇒ Object



5
6
7
8
9
# File 'lib/switchman/active_support/cache.rb', line 5

def lookup_store(*store_options)
  store = super
  store.options[:namespace] ||= lambda { Shard.current.default? ? nil : "shard_#{Shard.current.id}" }
  store
end