Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Connect to Redis and ping the server.
package main
import (
"fmt"
"gopkg.in/redis.v5"
)
func main() {
client := redis.NewClient(&redis.Options{
Addr: "localhost:6379",
})
pong, _ := client.Ping().Result()
fmt.Println(pong)
}
Upgrade
Version history
5.2.9latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.