class ActiveSupport::Cache::MemCacheStore

def rescue_error_with(fallback)

def rescue_error_with(fallback)
  yield
rescue Dalli::DalliError => error
  logger.error("DalliError (#{error}): #{error.message}") if logger
  ActiveSupport.error_reporter&.report(
    error,
    severity: :warning,
    source: "mem_cache_store.active_support",
  )
  fallback
end