1
0
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:
janaurka
2018-03-01 09:37:51 +01:00
committed by Vladimir Mihailenco
parent 55c9929dba
commit d0a2b8bdf3
2 changed files with 13 additions and 0 deletions

View File

@ -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())