chore: add more tests (#3954)

This commit is contained in:
Kevin Wan
2024-03-02 12:22:55 +08:00
committed by GitHub
parent 0ee44c7064
commit 8e97c5819f
2 changed files with 133 additions and 124 deletions

View File

@@ -2080,7 +2080,8 @@ func (s *Redis) Zaddnx(key string, score int64, value string) (val bool, err err
}
// ZaddnxCtx is the implementation of redis zadd nx command.
func (s *Redis) ZaddnxCtx(ctx context.Context, key string, score int64, value string) (val bool, err error) {
func (s *Redis) ZaddnxCtx(ctx context.Context, key string, score int64, value string) (
val bool, err error) {
return s.ZaddnxFloatCtx(ctx, key, float64(score), value)
}