code: func (p *ecrProvider) getFromCache(parsed *parsedURL) (credentialprovider.DockerConfig, bool) {
  	cfg := credentialprovider.DockerConfig{}
  
  	obj, exists, err := p.cache.GetByKey(parsed.registry)
  	if err != nil {
  		klog.Errorf("error getting ECR credentials from cache: %v", err)
  		return cfg, false
  	}
  
  	if !exists {
  		return cfg, false
  	}
  
  	entry := obj.(*cacheEntry)
  	cfg[entry.registry] = entry.credentials
  	return cfg, true
  }
docs: // getFromCache attempts to get credentials from the cache