We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When we do HashSet,
HashSet
HashEntry[] hashEntries = { new HashEntry("Id", 1), new HashEntry("Email", ""), }; RedisDatabase.HashSet("Key1", hashEntries);
In line 4,
new HashEntry("Email", ""),
new HashEntry("Email", RedisValue.EmptyString),
Why do they work differently?
Seems like RedisValue.EmptyString is treated as null value as we see the stacktrace. Related stacktrace is as below.
RedisValue.EmptyString
null
Location: StackExchange.Redis.RedisValue.AssertNotNull() File c:\TeamCity\buildAgent\work\58bc9a6df18a3782\StackExchange.Redis\StackExchange\Redis\RedisValue.cs: line 237 Location: StackExchange.Redis.RedisDatabase.GetHashSetMessage(RedisKey key, HashEntry[] hashFields, CommandFlags flags) File c:\TeamCity\buildAgent\work\58bc9a6df18a3782\StackExchange.Redis\StackExchange\Redis\RedisDatabase.cs: line 1567 Location: StackExchange.Redis.RedisDatabase.HashSet(RedisKey key, HashEntry[] hashFields, CommandFlags flags) File c:\TeamCity\buildAgent\work\58bc9a6df18a3782\StackExchange.Redis\StackExchange\Redis\RedisDatabase.cs: line 216
The text was updated successfully, but these errors were encountered:
Issue StackExchange#111: HashSet with RedisValue.EmptyString do not w…
1a4903b
…ork as "" Simple reorder of static field init order fixes this issue.
Merge pull request #133 from luberg/master
2ce669f
Issue #111: HashSet with RedisValue.EmptyString do not work as ""
I'm not sure if this is intentional or not, but if we change the behavior, it'd need to be in a major version release - relating to #528.
TODO: Verify if this is the current behavior.
Sorry, something went wrong.
No branches or pull requests
When we do
HashSet
,In line 4,
new HashEntry("Email", ""),
new HashEntry("Email", RedisValue.EmptyString),
Why do they work differently?
Seems like
RedisValue.EmptyString
is treated asnull
value as we see the stacktrace.Related stacktrace is as below.
The text was updated successfully, but these errors were encountered: