mirror of https://github.com/go-redis/redis.git
fix broken cmdable interface of redis.Tx
This commit is contained in:
parent
6d51952d43
commit
4a828ac3d2
11
commands.go
11
commands.go
|
@ -40,10 +40,7 @@ func formatSec(dur time.Duration) string {
|
||||||
return strconv.FormatInt(int64(dur/time.Second), 10)
|
return strconv.FormatInt(int64(dur/time.Second), 10)
|
||||||
}
|
}
|
||||||
|
|
||||||
type Cmdable interface {
|
type BaseCmdable interface {
|
||||||
Pipeline() *Pipeline
|
|
||||||
Pipelined(fn func(*Pipeline) error) ([]Cmder, error)
|
|
||||||
|
|
||||||
Echo(message interface{}) *StringCmd
|
Echo(message interface{}) *StringCmd
|
||||||
Ping() *StatusCmd
|
Ping() *StatusCmd
|
||||||
Quit() *StatusCmd
|
Quit() *StatusCmd
|
||||||
|
@ -238,6 +235,12 @@ type Cmdable interface {
|
||||||
Command() *CommandsInfoCmd
|
Command() *CommandsInfoCmd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Cmdable interface {
|
||||||
|
Pipeline() *Pipeline
|
||||||
|
Pipelined(fn func(*Pipeline) error) ([]Cmder, error)
|
||||||
|
BaseCmdable
|
||||||
|
}
|
||||||
|
|
||||||
type cmdable struct {
|
type cmdable struct {
|
||||||
process func(cmd Cmder) error
|
process func(cmd Cmder) error
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue