class ActiveSupport::Cache::RedisCacheStore

def failsafe(method, returning: nil)

def failsafe(method, returning: nil)
  yield
rescue ::Redis::BaseError => error
  ActiveSupport.error_reporter&.report(error, handled: true, severity: :warning)
  @error_handler&.call(method: method, exception: error, returning: returning)
  returning
end