mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
Impement Config Rewrite command (#722)
This commit adds support for config rewrite as documented in https://redis.io/commands/config-rewrite .
This commit is contained in:
committed by
Vladimir Mihailenco
parent
55c9929dba
commit
d0a2b8bdf3
@ -162,6 +162,12 @@ var _ = Describe("Commands", func() {
|
||||
Expect(configSet.Val()).To(Equal("OK"))
|
||||
})
|
||||
|
||||
It("should ConfigRewrite", func() {
|
||||
configRewrite := client.ConfigRewrite()
|
||||
Expect(configRewrite.Err()).NotTo(HaveOccurred())
|
||||
Expect(configRewrite.Val()).To(Equal("OK"))
|
||||
})
|
||||
|
||||
It("should DBSize", func() {
|
||||
size, err := client.DBSize().Result()
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
|
Reference in New Issue
Block a user