node-redis
node-redis copied to clipboard
Support the NOVALUES option of HSCAN
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 testpass 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 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:
HSCAN/hScanHSCAN_NOVALUES/hScanNoValueshScanIteratorhScanNoValuesIterator
@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:
HSCAN/hScanHSCAN_NOVALUES/hScanNoValueshScanIteratorhScanNoValuesIterator
@leibale Got it, thanks! Makes sense, the same is done in other clients too. I'll adapt the code.