mirror of https://github.com/go-redis/redis.git
20 lines
318 B
Go
20 lines
318 B
Go
package redis
|
|
|
|
import (
|
|
"time"
|
|
|
|
"gopkg.in/redis.v5/internal/pool"
|
|
)
|
|
|
|
func (c *baseClient) Pool() pool.Pooler {
|
|
return c.connPool
|
|
}
|
|
|
|
func (c *PubSub) Pool() pool.Pooler {
|
|
return c.base.connPool
|
|
}
|
|
|
|
func (c *PubSub) ReceiveMessageTimeout(timeout time.Duration) (*Message, error) {
|
|
return c.receiveMessage(timeout)
|
|
}
|