code: func (s *ConfigService) ListCaches(opt *ListCachesOptions) (*map[string]CacheInfo, *Response, error) {
  	u := "config/server/caches/"
  
  	u, err := addOptions(u, opt)
  	if err != nil {
  		return nil, nil, err
  	}
  
  	req, err := s.client.NewRequest("GET", u, nil)
  	if err != nil {
  		return nil, nil, err
  	}
  
  	v := new(map[string]CacheInfo)
  	resp, err := s.client.Do(req, v)
  	if err != nil {
  		return nil, resp, err
  	}
  
  	return v, resp, err
  }
docs: // ListCaches lists the caches of the server. Caches defined by plugins are included.
  // The caller must be a member of a group that is granted one of the following capabilities:
  // * View Caches
  // * Maintain Server
  // * Administrate Server
  // The entries in the map are sorted by cache name.
  //
  // Gerrit API docs: https://gerrit-review.googlesource.com/Documentation/rest-api-config.html#list-caches