编程笔记

lifelong learning & practice makes perfect

go-zeo usage

redis

连接

  1. 通过select选库

    1
    2
    3
    4
    5
    r := redis.NewRedis(redisAddr, "node", password)
    err = r.Pipelined(func(p redis.Pipeliner) error {
    p.Select(1)
    return nil
    })

欢迎关注我的其它发布渠道