Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
local
helper
Commits
23b74c3c
Commit
23b74c3c
authored
4 years ago
by
wsc
Browse files
Options
Download
Plain Diff
Merge branch 'rel-v1.0.6' into 'master'
Rel v1.0.6 See merge request
!24
parents
3c2d9408
7ab60ab8
develop
master
v1.1.4
v1.1.3
v1.1.2
v1.1.1
v1.1.0
v1.0.9
v1.0.8
v1.0.7
v1.0.6
2 merge requests
!25
Master
,
!24
Rel v1.0.6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
redis.go
+7
-0
redis.go
with
7 additions
and
0 deletions
+7
-0
redis.go
+
7
-
0
View file @
23b74c3c
...
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help