mirror of
https://github.com/redis/go-redis.git
synced 2025-06-14 01:21:30 +03:00
Add Pipeline to Cmdable.
This commit is contained in:
@ -41,6 +41,9 @@ func formatSec(dur time.Duration) string {
|
||||
}
|
||||
|
||||
type Cmdable interface {
|
||||
Pipeline() *Pipeline
|
||||
Pipelined(fn func(*Pipeline) error) ([]Cmder, error)
|
||||
|
||||
Echo(message interface{}) *StringCmd
|
||||
Ping() *StatusCmd
|
||||
Quit() *StatusCmd
|
||||
@ -247,8 +250,6 @@ func (c *cmdable) WrapProcess(createWrapper func(oldProcess func(cmd Cmder) erro
|
||||
c.process = createWrapper(c.process)
|
||||
}
|
||||
|
||||
var _ Cmdable = (*cmdable)(nil)
|
||||
|
||||
type statefulCmdable struct {
|
||||
process func(cmd Cmder) error
|
||||
}
|
||||
|
Reference in New Issue
Block a user