// getNamespace retrieves the information from the cache if it exists
func (r *registry) getNamespace(name namespace.Name) (*namespace.Namespace, error) {
registry.go
r.nsMapsLock.RLock()
defer r.nsMapsLock.RUnlock()
if id, ok := r.nameToID[name]; ok {
return r.getNamespaceByIDLocked(id)
}