Commit 12420c0f by xuzhenhao

增加了redis工具库中的方法

1 parent c06b5b7d
Showing with 7 additions and 0 deletions
......@@ -243,3 +243,10 @@ func RedisZRevRangeByScore(conn redis.Conn, key string, startScore string, endSc
}
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)
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!