1
0
mirror of https://github.com/redis/go-redis.git synced 2025-06-12 14:21:52 +03:00

Add support for XDel

This commit is contained in:
Noah Hilverling
2018-11-13 13:22:50 +01:00
parent 0064936c5b
commit 3a019aa681
2 changed files with 17 additions and 0 deletions

View File

@ -3405,6 +3405,12 @@ var _ = Describe("Commands", func() {
}))
})
It("should XDel", func() {
n, err := client.XDel("stream", "1-0", "2-0", "3-0").Result()
Expect(err).NotTo(HaveOccurred())
Expect(n).To(Equal(int64(3)))
})
It("should XLen", func() {
n, err := client.XLen("stream").Result()
Expect(err).NotTo(HaveOccurred())