diff --git a/wrapper.go b/wrapper.go index 629c721..cfb9260 100644 --- a/wrapper.go +++ b/wrapper.go @@ -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) +}