go-redis https://github.com/redis/go-redis
天问 421e79c141 Update 'README.md' | 8 months ago | |
---|---|---|
README.md | 8 months ago |
go-redis
go get github.com/redis/go-redis/v9
import "github.com/redis/go-redis/v9"
rdb := redis.NewClient(&redis.Options{
Addr: "localhost:6379",
Password: "", // 没有密码,默认值
DB: 0, // 默认DB 0
})