groupcache icon indicating copy to clipboard operation
groupcache copied to clipboard

may you add default replicas ?

Open ZBIGBEAR opened this issue 3 years ago • 0 comments

1.add default replicas groupcache/consistenthash.go: line 34. replicas must has a default value. if replicas <=0, then it will do nothing when call func (m *Map) Add(keys ...string)

and i suggest the default replicas value is 23

2.add sync.Mutex. when call Add and Get,we can lock the kes and hashMap

ZBIGBEAR avatar Jun 19 '22 13:06 ZBIGBEAR