module Switchman::ActiveSupport::Cache::RedisCacheStore
Public Instance Methods
clear(namespace: nil, **)
click to toggle source
Calls superclass method
# File lib/switchman/active_support/cache.rb, line 18 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