mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
Refactor Set, SetNX and SetXX with expiration.
This commit is contained in:
@ -36,7 +36,7 @@ var _ = Describe("Sentinel", func() {
|
||||
defer client.Close()
|
||||
|
||||
// Set value on master, verify
|
||||
err = client.Set("foo", "master").Err()
|
||||
err = client.Set("foo", "master", 0).Err()
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
|
||||
val, err := master.Get("foo").Result()
|
||||
|
Reference in New Issue
Block a user