mirror of
https://github.com/redis/go-redis.git
synced 2025-06-15 12:41:41 +03:00
Support for multi keys in Exists
This commit is contained in:
@ -242,6 +242,14 @@ var _ = Describe("Commands", func() {
|
||||
exists = client.Exists("key2")
|
||||
Expect(exists.Err()).NotTo(HaveOccurred())
|
||||
Expect(exists.Val()).To(Equal(false))
|
||||
|
||||
existsMul := client.ExistsMulti("key1", "key2")
|
||||
Expect(existsMul.Err()).NotTo(HaveOccurred())
|
||||
Expect(existsMul.Val()).To(Equal(int64(1)))
|
||||
|
||||
existsMul = client.ExistsMulti("key1", "key1")
|
||||
Expect(existsMul.Err()).NotTo(HaveOccurred())
|
||||
Expect(existsMul.Val()).To(Equal(int64(2)))
|
||||
})
|
||||
|
||||
It("should Expire", func() {
|
||||
|
Reference in New Issue
Block a user