func()

in groupcache.go [505:516]


func (g *Group) checkFromPeer(ctx Context, peer ProtoPeer, key string) (bool, error) {
	req := &pb.ContainRequest{
		Group: g.name,
		Key:   key,
	}
	res := &pb.ContainResponse{}
	err := peer.Contain(ctx, req, res)
	if err != nil {
		return false, err
	}
	return res.Exists, nil
}