mirror of
https://github.com/redis/go-redis.git
synced 2025-10-20 09:52:25 +03:00
- Adds support for handling push notifications with RESP3. - Using this support adds handlers for hitless upgrades. --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Hristo Temelski <hristo.temelski@redis.com>
25 lines
336 B
Go
25 lines
336 B
Go
package pool
|
|
|
|
import (
|
|
"net"
|
|
"time"
|
|
)
|
|
|
|
func (cn *Conn) SetCreatedAt(tm time.Time) {
|
|
cn.createdAt = tm
|
|
}
|
|
|
|
func (cn *Conn) NetConn() net.Conn {
|
|
return cn.getNetConn()
|
|
}
|
|
|
|
func (p *ConnPool) CheckMinIdleConns() {
|
|
p.connsMu.Lock()
|
|
p.checkMinIdleConns()
|
|
p.connsMu.Unlock()
|
|
}
|
|
|
|
func (p *ConnPool) QueueLen() int {
|
|
return len(p.queue)
|
|
}
|