Skip to content

Commit

Permalink
feat: add object fraq command
Browse files Browse the repository at this point in the history
Signed-off-by: rfyiamcool <rfyiamcool@163.com>
  • Loading branch information
rfyiamcool committed Dec 20, 2023
1 parent 6e79aab commit 6360bd8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion commands_test.go
Expand Up @@ -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"
)

Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 6360bd8

Please sign in to comment.