...

Source file src/github.com/redis/go-redis/v9/internal/pool/export_test.go

Documentation: github.com/redis/go-redis/v9/internal/pool

     1  package pool
     2  
     3  import (
     4  	"net"
     5  	"time"
     6  )
     7  
     8  func (cn *Conn) SetCreatedAt(tm time.Time) {
     9  	cn.createdAt = tm
    10  }
    11  
    12  func (cn *Conn) NetConn() net.Conn {
    13  	return cn.netConn
    14  }
    15  
    16  func (p *ConnPool) CheckMinIdleConns() {
    17  	p.connsMu.Lock()
    18  	p.checkMinIdleConns()
    19  	p.connsMu.Unlock()
    20  }
    21  
    22  func (p *ConnPool) QueueLen() int {
    23  	return len(p.queue)
    24  }
    25  

View as plain text