Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
xuzhenhao
/
rlw-dev
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 12420c0f
authored
Dec 28, 2017
by
xuzhenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加了redis工具库中的方法
1 parent
c06b5b7d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
sdkredis/redisCommon.go
sdkredis/redisCommon.go
View file @
12420c0
...
@@ -243,3 +243,10 @@ func RedisZRevRangeByScore(conn redis.Conn, key string, startScore string, endSc
...
@@ -243,3 +243,10 @@ func RedisZRevRangeByScore(conn redis.Conn, key string, startScore string, endSc
}
}
return
RedisCommand
(
conn
,
"zrevrangebyscore"
,
key
,
startScore
,
endScore
,
"withscore"
)
return
RedisCommand
(
conn
,
"zrevrangebyscore"
,
key
,
startScore
,
endScore
,
"withscore"
)
}
}
/*
* zscore
*/
func
RedisZScore
(
conn
redis
.
Conn
,
key
string
,
member
string
)
(
reply
interface
{},
err
error
)
{
return
RedisCommand
(
conn
,
"zscore"
,
key
,
member
)
}
Write
Preview
Markdown
is supported
Attach a file
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 post a comment