June 2017
Intermediate to advanced
400 pages
10h 32m
English
These steps cover writing and running your application:
package redis import ( "os" redis "gopkg.in/redis.v5" ) // Setup initializes a redis client func Setup() (*redis.Client, error) { client := redis.NewClient(&redis.Options{ Addr: "localhost:6379", Password: os.Getenv("REDISPASSWORD"), DB: 0, // use default DB }) _, err := client.Ping().Result() return client, err }
Read now
Unlock full access