Skip to content
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

[Compatibility] Added NOVALUE option for HSCAN #701

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Vijay-Nirmal
Copy link
Contributor

@Vijay-Nirmal Vijay-Nirmal commented Oct 3, 2024

  • Add NOVALUE option for HSCAN
  • Updated Test cases
  • Updated documentation
  • Updated StackExchange.Redis to 2.8.16 to get the new HashScanNoValues method in the test project

@TalZaccai TalZaccai requested a review from yrajas October 3, 2024 18:18
Copy link
Contributor

@yrajas yrajas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Count to be adjusted for hscan.

@@ -228,7 +228,10 @@ public override unsafe void Scan(long start, out List<byte[]> items, out long cu
if (patternLength == 0)
{
items.Add(item.Key);
items.Add(item.Value);
if (!isNoValue)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The count value will have to be adjusted as well if NOVALUES present as it is currently always multiplying it by two to account for key and value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants