1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-31 05:04:23 +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

@ -17,7 +17,7 @@ var _ = Describe("Commands", func() {
BeforeEach(func() {
client = redis.NewClient(redisOptions())
Expect(client.FlushDb().Err()).NotTo(HaveOccurred())
Expect(client.FlushDB().Err()).NotTo(HaveOccurred())
})
AfterEach(func() {
@ -352,7 +352,7 @@ var _ = Describe("Commands", func() {
pipe := client.Pipeline()
pipe.Select(2)
get = pipe.Get("key")
pipe.FlushDb()
pipe.FlushDB()
_, err := pipe.Exec()
Expect(err).NotTo(HaveOccurred())