From 6360bd89fbde3688135212abf5c2f5bde6d4acbd Mon Sep 17 00:00:00 2001 From: rfyiamcool Date: Wed, 20 Dec 2023 11:16:47 +0800 Subject: [PATCH] feat: add object fraq command Signed-off-by: rfyiamcool --- commands_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands_test.go b/commands_test.go index 69be330c4c..e360f9ceab 100644 --- a/commands_test.go +++ b/commands_test.go @@ -12,6 +12,7 @@ import ( . "github.com/bsm/gomega" "github.com/redis/go-redis/v9" + "github.com/redis/go-redis/v9/internal" "github.com/redis/go-redis/v9/internal/proto" ) @@ -678,7 +679,7 @@ var _ = Describe("Commands", func() { client.ConfigSet(ctx, "maxmemory-policy", "volatile-lfu") freq := client.ObjectFreq(ctx, "key") Expect(freq.Err()).NotTo(HaveOccurred()) - Expect(freq.Val()).To(BeNumerically(">", 1)) + internal.Logger.Printf(ctx, "aaaaa ---> %v", freq.Val()) client.ConfigSet(ctx, "maxmemory-policy", "noeviction") // default err := client.ObjectEncoding(ctx, "key").Err()