github.com/go-redis/redis/v8.baseClient.opt (field)
46 uses
github.com/go-redis/redis/v8 (current package)
cluster.go#L1032: return newClusterState(c.nodes, slots, node.Client.opt.Addr)
redis.go#L120: opt *Options
redis.go#L128: opt: opt,
redis.go#L139: opt := c.opt.clone()
redis.go#L144: clone.opt = opt
redis.go#L150: return fmt.Sprintf("Redis<%s db:%d>", c.getAddr(), c.opt.DB)
redis.go#L169: if c.opt.Limiter != nil {
redis.go#L170: err := c.opt.Limiter.Allow()
redis.go#L178: if c.opt.Limiter != nil {
redis.go#L179: c.opt.Limiter.ReportResult(err)
redis.go#L217: if c.opt.Password == "" &&
redis.go#L218: c.opt.DB == 0 &&
redis.go#L219: !c.opt.readOnly &&
redis.go#L220: c.opt.OnConnect == nil {
redis.go#L225: conn := newConn(ctx, c.opt, connPool)
redis.go#L228: if c.opt.Password != "" {
redis.go#L229: if c.opt.Username != "" {
redis.go#L230: pipe.AuthACL(ctx, c.opt.Username, c.opt.Password)
redis.go#L232: pipe.Auth(ctx, c.opt.Password)
redis.go#L236: if c.opt.DB > 0 {
redis.go#L237: pipe.Select(ctx, c.opt.DB)
redis.go#L240: if c.opt.readOnly {
redis.go#L250: if c.opt.OnConnect != nil {
redis.go#L251: return c.opt.OnConnect(ctx, conn)
redis.go#L257: if c.opt.Limiter != nil {
redis.go#L258: c.opt.Limiter.ReportResult(err)
redis.go#L296: for attempt := 0; attempt <= c.opt.MaxRetries; attempt++ {
redis.go#L309: err := cn.WithWriter(ctx, c.opt.WriteTimeout, func(wr *proto.Writer) error {
redis.go#L339: return internal.RetryBackoff(attempt, c.opt.MinRetryBackoff, c.opt.MaxRetryBackoff)
redis.go#L350: return c.opt.ReadTimeout
redis.go#L371: return c.opt.Addr
redis.go#L399: for attempt := 0; attempt <= c.opt.MaxRetries; attempt++ {
redis.go#L422: err := cn.WithWriter(ctx, c.opt.WriteTimeout, func(wr *proto.Writer) error {
redis.go#L429: err = cn.WithReader(ctx, c.opt.ReadTimeout, func(rd *proto.Reader) error {
redis.go#L448: err := cn.WithWriter(ctx, c.opt.WriteTimeout, func(wr *proto.Writer) error {
redis.go#L455: err = cn.WithReader(ctx, c.opt.ReadTimeout, func(rd *proto.Reader) error {
redis.go#L567: return newConn(ctx, c.opt, pool.NewStickyConnPool(c.connPool))
redis.go#L591: return c.opt
redis.go#L631: opt: c.opt,
redis.go#L704: opt: opt,
sentinel.go#L234: opt: opt,
sentinel.go#L261: opt: c.opt,
tx.go#L28: opt: c.opt,
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |