code: func (r *Spec) IsInImageCache(key string) bool {
  	// This is used for cache pruning. We currently only have images, but we could
  	// imagine expanding on this.
  	return r.imageCache.isInCache(key)
  }
docs: // TODO(bep) unify