Browse Source

redis comment

Aaron Torres 2 years ago
parent
commit
8c8f210b0d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      chapter5/redis/config.go

+ 2 - 0
chapter5/redis/config.go

@@ -14,6 +14,8 @@ func Setup() (*redis.Client, error) {
 		DB:       0, // use default DB
 	})
 
+	// commands returns "PONG", tests if
+	// connection alive
 	_, err := client.Ping().Result()
 	return client, err
 }