func (c *sentinelClient) PubSub() *PubSub { return &PubSub{ base: baseClient{ opt: c.opt, connPool: pool.NewStickyConnPool(c.connPool.(*pool.ConnPool), false), }, } }
func (c *Client) newTx() *Tx { tx := Tx{ baseClient: baseClient{ opt: c.opt, connPool: pool.NewStickyConnPool(c.connPool.(*pool.ConnPool), true), }, } tx.cmdable.process = tx.Process tx.statefulCmdable.process = tx.Process return &tx }