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

Support the NOVALUES option of HSCAN #2711

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gerzse
Copy link

@gerzse gerzse commented Feb 27, 2024

Description

Issue #2705

The NOVALUES option instructs HSCAN to only return keys, without their values.
The new option will become available from Redis 7.6.

Checklist

  • Does npm test pass with this change (including linting)?
  • Is the new or changed code fully tested?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?

@gerzse gerzse requested a review from leibale February 27, 2024 08:07
@leibale
Copy link
Collaborator

leibale commented Feb 27, 2024

@gerzse arguments that change the reply type should be implemented as their own command, see HRANDFIELD_COUNT and HRANDFIELD_COUNT_WITHVALUES for example.

For this command, we should have:

  1. HSCAN/hScan
  2. HSCAN_NOVALUES/hScanNoValues
  3. hScanIterator
  4. hScanNoValuesIterator

@gerzse
Copy link
Author

gerzse commented Mar 4, 2024

@gerzse arguments that change the reply type should be implemented as their own command, see HRANDFIELD_COUNT and HRANDFIELD_COUNT_WITHVALUES for example.

For this command, we should have:

  1. HSCAN/hScan
  2. HSCAN_NOVALUES/hScanNoValues
  3. hScanIterator
  4. hScanNoValuesIterator

@leibale Got it, thanks! Makes sense, the same is done in other clients too. I'll adapt the code.

Issue redis#2705

The NOVALUES option instructs HSCAN to only return keys, without their
values. This is materialized as a new command, `hScanNoValues`, given
that the return type is different from the usual return type of `hScan`.
Also a new iterator is provided, `hScanNoValuesIterator`, for the same
reason.
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.

None yet

2 participants