redis/export_test.go

20 lines
318 B
Go
Raw Normal View History

2013-11-07 18:20:15 +04:00
package redis
2016-03-17 19:00:47 +03:00
import (
"time"
"gopkg.in/redis.v3/internal/pool"
)
func (c *baseClient) Pool() pool.Pooler {
2013-11-07 18:20:15 +04:00
return c.connPool
}
2015-03-23 11:23:33 +03:00
func (c *PubSub) Pool() pool.Pooler {
return c.base.connPool
}
2016-03-17 19:00:47 +03:00
2016-04-09 11:34:40 +03:00
func (c *PubSub) ReceiveMessageTimeout(timeout time.Duration) (*Message, error) {
return c.receiveMessage(timeout)
2016-03-17 19:00:47 +03:00
}