Commit 23b74c3c authored by wsc's avatar wsc
Browse files

Merge branch 'rel-v1.0.6' into 'master'

Rel v1.0.6

See merge request !24
Showing with 7 additions and 0 deletions
+7 -0
......@@ -45,6 +45,13 @@ type RedisClient struct {
p *redis.Pool
}
// GetConn 返回一个底层连接
// 注意!!!!!
// 调用Close
func (c RedisClient) GetConn() redis.Conn {
return c.p.Get()
}
//Do 执行命令
func (c RedisClient) Do(command string, args ...interface{}) (interface{}, error) {
conn := c.p.Get()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment