Skip to content

Instantly share code, notes, and snippets.

@arriqaaq
Created March 13, 2019 12:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arriqaaq/f40f91ea11f69d6f59e2b55389ac647f to your computer and use it in GitHub Desktop.
Save arriqaaq/f40f91ea11f69d6f59e2b55389ac647f to your computer and use it in GitHub Desktop.
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