class ActiveSupport::Cache::RedisCacheStore

def clear(options = nil)

Failsafe: Raises errors.

shared servers if the cache is namespaced.
Clear the entire cache on all Redis servers. Safe to use on
def clear(options = nil)
  failsafe :clear do
    if namespace = merged_options(options)[:namespace]
      delete_matched "*", namespace: namespace
    else
      redis.then { |c| c.flushdb }
    end
  end
end