code: func isValidCacheType(v string) bool {
  	switch v {
  	case CacheTypeLRU, CacheTypeRanked, CacheTypeNone:
  		return true
  	default:
  		return false
  	}
  }
docs: // isValidCacheType returns true if v is a valid cache type.