Skip to content

Commit e38dca8

Browse files
authored
Merge pull request redis-rs#530 from FilipStamenkovic/add_zmscore
Add zmscore command
2 parents 6213189 + c4a83fa commit e38dca8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/commands.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -917,6 +917,11 @@ implement_commands! {
917917
cmd("ZSCORE").arg(key).arg(member)
918918
}
919919

920+
/// Get the scores associated with multiple members in a sorted set.
921+
fn zscore_multiple<K: ToRedisArgs, M: ToRedisArgs>(key: K, members: &'a [M]) {
922+
cmd("ZMSCORE").arg(key).arg(members)
923+
}
924+
920925
/// Unions multiple sorted sets and store the resulting sorted set in
921926
/// a new key using SUM as aggregation function.
922927
fn zunionstore<K: ToRedisArgs>(dstkey: K, keys: &'a [K]) {

0 commit comments

Comments
 (0)