-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERR wrong number of arguments for 'sadd' command #1282
Comments
Agreed - we should detect that and no-op it (avoiding the redis call
completely, whenever possible)
…On Tue, 19 Nov 2019, 05:00 Aart Jan Kaptijn, ***@***.***> wrote:
Not entirely sure if this is expected behaviour, but it surprised me. When
the SetAdd(Async) methods are used with an empty array of values, there is
a broken call made to redis.
To reproduce:
var redisConnection = ConnectionMultiplexer.Connect("localhost");
redisConnection.GetDatabase().SetAdd("set1", new RedisValue[0]);
This also fails for SetAddAsync.
Version: 2.0.601
Tested with dotnetcore 2.2 and 3.0
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1282?email_source=notifications&email_token=AAAEHMGKIVG6QHRE53W4BP3QUPBMJA5CNFSM4JPBSQGKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H2J3ZJQ>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAEHMARI3ORVBLCW7NBTUTQUPBMJANCNFSM4JPBSQGA>
.
|
mgravell
pushed a commit
that referenced
this issue
Nov 20, 2019
This was resolved in #1283 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not entirely sure if this is expected behaviour, but it surprised me. When the SetAdd(Async) methods are used with an empty array of values, there is a broken call made to redis.
To reproduce:
This also fails for SetAddAsync.
Version: 2.0.601
Tested with dotnetcore 2.2 and 3.0
The text was updated successfully, but these errors were encountered: