1
0
mirror of https://github.com/redis/go-redis.git synced 2025-09-08 19:52:07 +03:00

Add client tracking and client trackinginfo commands

This commit is contained in:
ofekshenawa
2024-01-15 22:45:49 +02:00
parent 531f06861b
commit 7b4f30c599
2 changed files with 97 additions and 0 deletions

View File

@@ -243,6 +243,12 @@ var _ = Describe("Commands", func() {
Expect(get.Val()).To(Equal("theclientname"))
})
It("should ClientTrackingInfo", func() {
clientTrackingInfo, err := client.Conn().ClientTrackingInfo(ctx).Result()
Expect(err).NotTo(HaveOccurred())
Expect(clientTrackingInfo["prefixes"]).To(Equal([]interface{}{}))
})
It("should ClientSetInfo", func() {
pipe := client.Pipeline()