# File 'lib/switchman/active_support/cache.rb', line 5
def lookup_store_with_sharding(*store_options)
store = lookup_store_without_sharding(*store_options)
store.options[:namespace] ||= lambda { Shard.current.default? ? nil : "shard_#{Shard.current.id}" }
store
end
|