forked from mirror/redis
Merge pull request #398 from yzprofile/v4
fix broken cmdable interface of redis.Tx
This commit is contained in:
commit
8a8d997ad5
11
commands.go
11
commands.go
|
@ -40,10 +40,7 @@ func formatSec(dur time.Duration) string {
|
|||
return strconv.FormatInt(int64(dur/time.Second), 10)
|
||||
}
|
||||
|
||||
type Cmdable interface {
|
||||
Pipeline() *Pipeline
|
||||
Pipelined(fn func(*Pipeline) error) ([]Cmder, error)
|
||||
|
||||
type BaseCmdable interface {
|
||||
Echo(message interface{}) *StringCmd
|
||||
Ping() *StatusCmd
|
||||
Quit() *StatusCmd
|
||||
|
@ -238,6 +235,12 @@ type Cmdable interface {
|
|||
Command() *CommandsInfoCmd
|
||||
}
|
||||
|
||||
type Cmdable interface {
|
||||
Pipeline() *Pipeline
|
||||
Pipelined(fn func(*Pipeline) error) ([]Cmder, error)
|
||||
BaseCmdable
|
||||
}
|
||||
|
||||
type cmdable struct {
|
||||
process func(cmd Cmder) error
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue