golang/groupcache

consistenthash.go doesn't have a "Remove" method

toli-belo opened this issue · 4 comments

curious how you guys use consistenthash.go without the Remove method. Isn't the whole beauty in the ability to make some keys unavail by removing them from the "ring" /hash value list?

Hi, Has this issue been resolved?

I'm trying to understand the use case here, you can effectively "remove" a peer by re-creating the hash with a new set of peers.

I'm trying to understand the use case here, you can effectively "remove" a peer by re-creating the hash with a new set of peers.

I also thought about the use case, but what I'm worried about is that if re-creating will change the old mapping peer.

It can change the mapping peer, but removing a peer will also change the mapping peer.