MCPcopy Create free account
hub / github.com/golang/groupcache / IsEmpty

Method IsEmpty

consistenthash/consistenthash.go:48–50  ·  view source on GitHub ↗

IsEmpty returns true if there are no items available.

()

Source from the content-addressed store, hash-verified

46
47// IsEmpty returns true if there are no items available.
48func (m *Map) IsEmpty() bool {
49 return len(m.keys) == 0
50}
51
52// Add adds some keys to the hash.
53func (m *Map) Add(keys ...string) {

Callers 2

GetMethod · 0.95
PickPeerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected