Skip to content

Commit

Permalink
feat: add hstrlen command for hash
Browse files Browse the repository at this point in the history
Signed-off-by: rfyiamcool <rfyiamcool@163.com>
  • Loading branch information
rfyiamcool committed Dec 18, 2023
1 parent c7ff15e commit 9bfbda2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands_test.go
Expand Up @@ -2423,7 +2423,7 @@ var _ = Describe("Commands", func() {
Expect(hStrLen.Err()).NotTo(HaveOccurred())
Expect(hStrLen.Val()).To(Equal(int64(len("hello"))))

nonHStrLen := client.HGet(ctx, "hash", "keyNon")
nonHStrLen := client.HStrLen(ctx, "hash", "keyNon")
Expect(hStrLen.Err()).NotTo(HaveOccurred())
Expect(nonHStrLen.Val()).To(Equal(int64(0)))

Expand Down

0 comments on commit 9bfbda2

Please sign in to comment.