class Syntropy::Router

def get_route_entry(path, use_cache: true)

def get_route_entry(path, use_cache: true)
  if use_cache
    cached = @cache[path]
    return cached if cached
  end
  entry = find_route_entry(path)
  set_cache(path, entry) if use_cache && entry[:kind] != :not_found
  entry
end