Skip to content

Commit 5946693

Browse files
committed
feat: add object fraq command
Signed-off-by: rfyiamcool <[email protected]>
1 parent 887e913 commit 5946693

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

commands_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,8 +675,10 @@ var _ = Describe("Commands", func() {
675675
Expect(refCount.Err()).NotTo(HaveOccurred())
676676
Expect(refCount.Val()).To(Equal(int64(1)))
677677

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

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

0 commit comments

Comments
 (0)