mirror of https://github.com/go-redis/redis.git
added `Do` method for raw query by single conn from `pool.Conn()`
This commit is contained in:
parent
1ed936eb09
commit
db2321cb57
|
@ -228,6 +228,12 @@ type UniversalClient interface {
|
||||||
PoolStats() *PoolStats
|
PoolStats() *PoolStats
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c cmdable) Do(ctx context.Context, args ...interface{}) *Cmd {
|
||||||
|
cmd := NewCmd(ctx, args)
|
||||||
|
_ = c(ctx, cmd)
|
||||||
|
return cmd
|
||||||
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
_ UniversalClient = (*Client)(nil)
|
_ UniversalClient = (*Client)(nil)
|
||||||
_ UniversalClient = (*ClusterClient)(nil)
|
_ UniversalClient = (*ClusterClient)(nil)
|
||||||
|
|
Loading…
Reference in New Issue