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 <[email protected]>
  • Loading branch information
rfyiamcool committed Dec 20, 2023
1 parent 887e913 commit 5946693
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -675,8 +675,10 @@ var _ = Describe("Commands", func() {
Expect(refCount.Err()).NotTo(HaveOccurred())
Expect(refCount.Val()).To(Equal(int64(1)))

client.ConfigSet(ctx, "maxmemory-policy", "volatile-lfu")
freq := client.ObjectFreq(ctx, "key")
Expect(freq.Err()).NotTo(HaveOccurred())
client.ConfigSet(ctx, "maxmemory-policy", "noeviction") // default

err := client.ObjectEncoding(ctx, "key").Err()
Expect(err).NotTo(HaveOccurred())
Expand Down

0 comments on commit 5946693

Please sign in to comment.