mirror of
https://github.com/redis/go-redis.git
synced 2025-07-26 19:21:03 +03:00
upgrade bitfield cmd to add multiple values
(#2648)
Co-authored-by: wangzheng1 <wangzheng1@yidian-inc.com> Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
This commit is contained in:
@ -1253,6 +1253,10 @@ var _ = Describe("Commands", func() {
|
||||
nn, err := client.BitField(ctx, "mykey", "INCRBY", "i5", 100, 1, "GET", "u4", 0).Result()
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
Expect(nn).To(Equal([]int64{1, 0}))
|
||||
|
||||
nn, err = client.BitField(ctx, "mykey", "set", "i1", 1, 1, "GET", "u4", 0).Result()
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
Expect(nn).To(Equal([]int64{0, 4}))
|
||||
})
|
||||
|
||||
It("should Decr", func() {
|
||||
|
Reference in New Issue
Block a user