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:
@ -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())
|
||||
|
Reference in New Issue
Block a user