1
0
mirror of https://github.com/redis/go-redis.git synced 2025-06-14 01:21:30 +03:00

Add Cluster.DBSize

This commit is contained in:
Vladimir Mihailenco
2017-09-11 09:19:30 +03:00
parent 5294b5dae1
commit 0a7606651d
2 changed files with 25 additions and 5 deletions

View File

@ -475,11 +475,9 @@ var _ = Describe("ClusterClient", func() {
})
Expect(err).NotTo(HaveOccurred())
for _, client := range cluster.masters() {
size, err := client.DBSize().Result()
Expect(err).NotTo(HaveOccurred())
Expect(size).To(Equal(int64(0)))
}
size, err := client.DBSize().Result()
Expect(err).NotTo(HaveOccurred())
Expect(size).To(Equal(int64(0)))
})
It("should CLUSTER SLOTS", func() {