Module: Switchman::ActiveSupport::Cache::RedisCacheStore
- Defined in:
- lib/switchman/active_support/cache.rb
Instance Method Summary collapse
Instance Method Details
#clear(namespace: nil) ⇒ Object
39 40 41 42 43 44 45 46 |
# File 'lib/switchman/active_support/cache.rb', line 39 def clear(namespace: nil, **) # RedisCacheStore tries to be smart and only clear the cache under your namespace, if you have one set # unfortunately, it doesn't work using redis clustering because of the way redis keys are distributed # fortunately, we can assume we control the entire instance, because we set up the namespacing, so just # always unset it temporarily for clear calls namespace = nil # rubocop:disable Lint/ShadowedArgument super end |