package redis import ( "context" "time" rp "git.loafle.net/commons_go/redis_pool" "git.loafle.net/overflow/overflow_gateway_web/conf" "github.com/garyburd/redigo/redis" ) type poolHandlers struct { rp.PoolHandlers ctx context.Context } func (h *poolHandlers) Dial() (redis.Conn, error) { return redis.Dial(conf.Config.Redis.Network, conf.Config.Redis.Addr) } func (h *poolHandlers) TestOnBorrow(c redis.Conn, t time.Time) error { return nil }