redis/export_test.go

31 lines
370 B
Go
Raw Normal View History

2013-11-07 18:20:15 +04:00
package redis
import (
"net"
"time"
)
2013-11-07 18:20:15 +04:00
func (c *baseClient) Pool() pool {
return c.connPool
}
2015-03-23 11:23:33 +03:00
func (c *PubSub) Pool() pool {
return c.base.connPool
}
var NewConnDialer = newConnDialer
func (cn *conn) SetNetConn(netcn net.Conn) {
cn.netcn = netcn
}
func SetTime(tm time.Time) {
now = func() time.Time {
return tm
}
}
func RestoreTime() {
now = time.Now
}