mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
Faster and simpler pool.
This commit is contained in:
@ -1,6 +1,10 @@
|
||||
package redis
|
||||
|
||||
import "gopkg.in/redis.v3/internal/pool"
|
||||
import (
|
||||
"time"
|
||||
|
||||
"gopkg.in/redis.v3/internal/pool"
|
||||
)
|
||||
|
||||
func (c *baseClient) Pool() pool.Pooler {
|
||||
return c.connPool
|
||||
@ -9,3 +13,7 @@ func (c *baseClient) Pool() pool.Pooler {
|
||||
func (c *PubSub) Pool() pool.Pooler {
|
||||
return c.base.connPool
|
||||
}
|
||||
|
||||
func SetReceiveMessageTimeout(d time.Duration) {
|
||||
receiveMessageTimeout = d
|
||||
}
|
||||
|
Reference in New Issue
Block a user