1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

Add FlushDBAsync and FlushAllAsync

This commit is contained in:
Vladimir Mihailenco
2017-06-17 12:53:16 +03:00
parent 167410bcd7
commit f1ed2ad288
15 changed files with 43 additions and 22 deletions

View File

@ -478,7 +478,7 @@ var _ = Describe("ClusterClient", func() {
}
err := client.ForEachMaster(func(master *redis.Client) error {
return master.FlushDb().Err()
return master.FlushDB().Err()
})
Expect(err).NotTo(HaveOccurred())
@ -496,7 +496,7 @@ var _ = Describe("ClusterClient", func() {
client = cluster.clusterClient(opt)
_ = client.ForEachMaster(func(master *redis.Client) error {
return master.FlushDb().Err()
return master.FlushDB().Err()
})
})
@ -514,12 +514,12 @@ var _ = Describe("ClusterClient", func() {
client = cluster.clusterClient(opt)
_ = client.ForEachMaster(func(master *redis.Client) error {
return master.FlushDb().Err()
return master.FlushDB().Err()
})
})
AfterEach(func() {
client.FlushDb()
client.FlushDB()
Expect(client.Close()).NotTo(HaveOccurred())
})