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

Add GETKEYSINSLOT api call for clustered redis

This commit is contained in:
Jake Gregg
2019-01-29 10:39:58 -08:00
parent 40336e5ef8
commit 65932a4b9b
2 changed files with 13 additions and 0 deletions

View File

@ -637,6 +637,12 @@ var _ = Describe("ClusterClient", func() {
Expect(hashSlot).To(Equal(int64(hashtag.Slot("somekey"))))
})
It("should CLUSTER GETKEYSINSLOT", func() {
keys, err := client.ClusterGetKeysInSlot(hashtag.Slot("somekey"), 1).Result()
Expect(err).NotTo(HaveOccurred())
Expect(len(keys)).To(Equal(0))
})
It("should CLUSTER COUNT-FAILURE-REPORTS", func() {
n, err := client.ClusterCountFailureReports(cluster.nodeIds[0]).Result()
Expect(err).NotTo(HaveOccurred())