github.com/go-redis/redis/v8/internal/pool.ConnPool.opt (field)
19 uses
github.com/go-redis/redis/v8/internal/pool (current package)
pool.go#L70: opt *Options
pool.go#L94: opt: opt,
pool.go#L114: if p.opt.MinIdleConns == 0 {
pool.go#L117: for p.poolSize < p.opt.PoolSize && p.idleConnsLen < p.opt.MinIdleConns {
pool.go#L159: if p.poolSize >= p.opt.PoolSize {
pool.go#L175: if atomic.LoadUint32(&p.dialErrorsNum) >= uint32(p.opt.PoolSize) {
pool.go#L179: netConn, err := p.opt.Dialer(ctx)
pool.go#L182: if atomic.AddUint32(&p.dialErrorsNum, 1) == uint32(p.opt.PoolSize) {
pool.go#L200: conn, err := p.opt.Dialer(context.Background())
pool.go#L283: timer.Reset(p.opt.PoolTimeout)
pool.go#L372: if p.opt.OnClose != nil {
pool.go#L373: _ = p.opt.OnClose(cn)
pool.go#L511: if p.opt.IdleTimeout == 0 && p.opt.MaxConnAge == 0 {
pool.go#L516: if p.opt.IdleTimeout > 0 && now.Sub(cn.UsedAt()) >= p.opt.IdleTimeout {
pool.go#L519: if p.opt.MaxConnAge > 0 && now.Sub(cn.createdAt) >= p.opt.MaxConnAge {
![]() |
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. |