MCPcopy
hub / github.com/redis/go-redis / IsUp

Method IsUp

ring.go:294–296  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

292}
293
294func (shard *ringShard) IsUp() bool {
295 return !shard.IsDown()
296}
297
298// Vote votes to set shard state and returns true if state was changed.
299func (shard *ringShard) Vote(up bool) bool {

Callers 3

StringMethod · 0.95
rebalanceLockedMethod · 0.80
GetShardClientsMethod · 0.80

Calls 1

IsDownMethod · 0.95

Tested by

no test coverage detected