@lru_cache(maxsize=ROUTER_CACHE_SIZE)<EOL><INDENT>def find_route_by_view_name(self, view_name):<DEDENT>
if not view_name:<EOL><INDENT>return (None, None)<EOL><DEDENT>for uri, route in self.routes_all.items():<EOL><INDENT>if route.name == view_name:<EOL><INDENT>return uri, route<EOL><DEDENT><DEDENT>return (None, None)<EOL>
Find a route in the router based on the specified view name.

        :param view_name: string of view name to search by
        :return: tuple containing (uri, Route)