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

Method Options

ring.go:647–649  ·  view source on GitHub ↗

Options returns read-only *RingOptions that were used to create the client. Any alteration of the returned *RingOptions may result in undefined behaviour.

()

Source from the content-addressed store, hash-verified

645// Options returns read-only *RingOptions that were used to create the client.
646// Any alteration of the returned *RingOptions may result in undefined behaviour.
647func (c *Ring) Options() *RingOptions {
648 return c.opt
649}
650
651func (c *Ring) retryBackoff(attempt int) time.Duration {
652 return internal.RetryBackoff(attempt, c.opt.MinRetryBackoff, c.opt.MaxRetryBackoff)

Calls

no outgoing calls