feat: 增加ZADD ZADDWithOption

This commit is contained in:
zhangdeman committed 2026-04-13 17:26:50 +08:00
1 parent 2adbe2bcd3
commit 825ae95ecb
1 file changed
+10
+10
View File
@@ -132,3 +132,13 @@ func (w *wrapper) ZRangeAndRemByScore(ctx context.Context, instanceFlag string,
}
return rangeRes
}
// ZAdd ...
func (w *wrapper) ZAdd(ctx context.Context, instanceFlag string, key string, score int64, data any) *define.RedisResult {
return Client.Exec(ctx, instanceFlag, consts.RedisCommandZadd, key, score, data)
}
// ZAddWithOption ...
func (w *wrapper) ZAddWithOption(ctx context.Context, instanceFlag string, key string, option string, score int64, data any) *define.RedisResult {
return Client.Exec(ctx, instanceFlag, consts.RedisCommandZadd, key, option, score, data)
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.