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

Method retryBackoff

redis.go:1015–1017  ·  view source on GitHub ↗
(attempt int)

Source from the content-addressed store, hash-verified

1013}
1014
1015func (c *baseClient) retryBackoff(attempt int) time.Duration {
1016 return internal.RetryBackoff(attempt, c.opt.MinRetryBackoff, c.opt.MaxRetryBackoff)
1017}
1018
1019func (c *baseClient) cmdTimeout(cmd Cmder) time.Duration {
1020 if timeout := cmd.readTimeout(); timeout != nil {

Callers 2

_processMethod · 0.95

Calls 1

RetryBackoffFunction · 0.92

Tested by

no test coverage detected