Module: Switchman::ActiveSupport::Cache::RedisCacheStore
- Defined in:
- lib/switchman/active_support/cache.rb
Instance Method Summary collapse
Instance Method Details
#clear(namespace: nil) ⇒ Object
37 38 39 40 41 42 43 44 |
# File 'lib/switchman/active_support/cache.rb', line 37 def clear(namespace: nil, **) # RedisCacheStore tries to be smart and only clear the cache under your namespace, if you have one set # unfortunately, it uses the keys command, which is extraordinarily inefficient in a large redis instance # 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 |