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

@ -29,7 +29,7 @@ var _ = Describe("Redis Ring", func() {
ring = redis.NewRing(opt)
err := ring.ForEachShard(func(cl *redis.Client) error {
return cl.FlushDb().Err()
return cl.FlushDB().Err()
})
Expect(err).NotTo(HaveOccurred())
})