You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package lib
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/redis/go-redis/v9"
|
|
)
|
|
|
|
func Lib() {
|
|
fmt.Println("lib")
|
|
rdb := redis.NewClient(&redis.Options{
|
|
Addr: "localhost:6379",
|
|
Password: "", // 没有密码,默认值
|
|
DB: 0, // 默认DB 0
|
|
})
|
|
defer rdb.Close()
|
|
|
|
}
|