mirror of
https://github.com/redis/go-redis.git
synced 2025-04-19 07:22:17 +03:00
20 lines
278 B
Go
20 lines
278 B
Go
package redis
|
|
|
|
import (
|
|
"time"
|
|
|
|
"gopkg.in/redis.v3/internal/pool"
|
|
)
|
|
|
|
func (c *baseClient) Pool() pool.Pooler {
|
|
return c.connPool
|
|
}
|
|
|
|
func (c *PubSub) Pool() pool.Pooler {
|
|
return c.base.connPool
|
|
}
|
|
|
|
func SetReceiveMessageTimeout(d time.Duration) {
|
|
receiveMessageTimeout = d
|
|
}
|