mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
Fix flaky tests
This commit is contained in:
11
commands.go
11
commands.go
@ -191,7 +191,7 @@ type Cmdable interface {
|
||||
ConfigGet(parameter string) *SliceCmd
|
||||
ConfigResetStat() *StatusCmd
|
||||
ConfigSet(parameter, value string) *StatusCmd
|
||||
DbSize() *IntCmd
|
||||
DBSize() *IntCmd
|
||||
FlushAll() *StatusCmd
|
||||
FlushAllAsync() *StatusCmd
|
||||
FlushDB() *StatusCmd
|
||||
@ -1684,7 +1684,12 @@ func (c *cmdable) ConfigSet(parameter, value string) *StatusCmd {
|
||||
return cmd
|
||||
}
|
||||
|
||||
// Deperecated. Use DBSize instead.
|
||||
func (c *cmdable) DbSize() *IntCmd {
|
||||
return c.DBSize()
|
||||
}
|
||||
|
||||
func (c *cmdable) DBSize() *IntCmd {
|
||||
cmd := NewIntCmd("dbsize")
|
||||
c.process(cmd)
|
||||
return cmd
|
||||
@ -1704,9 +1709,7 @@ func (c *cmdable) FlushAllAsync() *StatusCmd {
|
||||
|
||||
// Deprecated. Use FlushDB instead.
|
||||
func (c *cmdable) FlushDb() *StatusCmd {
|
||||
cmd := NewStatusCmd("flushdb")
|
||||
c.process(cmd)
|
||||
return cmd
|
||||
return c.FlushDB()
|
||||
}
|
||||
|
||||
func (c *cmdable) FlushDB() *StatusCmd {
|
||||
|
Reference in New Issue
Block a user