Created
March 13, 2019 12:14
-
-
Save arriqaaq/f40f91ea11f69d6f59e2b55389ac647f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"github.com/go-redis/redis" | |
) | |
func main() { | |
client := redis.NewClient(&redis.Options{ | |
Addr: "redis-master:6379", | |
DB: 0, | |
}) | |
_, err := client.Ping().Result() | |
if err != nil { | |
log.Fatalln(err) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment