goredis:golang redis 客户端,缓冲连接,连接池
goredis
golang redis client, bufferd connection, connection pool, support all redis commands,
欢迎大家批评指正,更欢迎大家加入进来。
Create a new conn?
c, e := Dial("127.0.0.1:6379", pwd, CTimeout, RTimeout, WTimeout, alive, *pool)
if e != nil {
println(e.Error())
return
}
如果redis不需要AUTH认证, password =""
A Redis Command.
c.GET("mykey")
c.SADD("mySets", []string{"a","b","c"})
// You can also use this