def METHOD_NAME(
        self,
        route: Route | None,
        view: type[View] | str,
) -> None:
    view_class = self._acquire(view)
    if route:
        self._run_checks(route, view_class)
    cache_key = self._gen_cache_key(view)
    self._cache[cache_key] = view_class