module Switchman::ActionController::Caching::ConfigMethods
Public Instance Methods
cache_store()
click to toggle source
always go through Rails.cache, which will give you the cache store appropriate to the current shard.
# File lib/switchman/action_controller/caching.rb, line 9 def cache_store ::Rails.cache end
cache_store=(_cache)
click to toggle source
disallow assigning to ActionController::Base.cache_store or ActionController::Base#cache_store for the same reasons we disallow assigning to Rails.cache
# File lib/switchman/action_controller/caching.rb, line 16 def cache_store=(_cache) raise NoMethodError end