-
Notifications
You must be signed in to change notification settings - Fork 70
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
Node: update commands which return a Record
with GlideString
.
#2207
Node: update commands which return a Record
with GlideString
.
#2207
Conversation
* Spike: returning a record replacement with glide strings. Signed-off-by: Yury-Fridlyand <[email protected]> Co-authored-by: Andrew Carbonetto <[email protected]>
…419) * Updated PubSub shardnumsub and numsub commands --------- Signed-off-by: Yi-Pin Chen <[email protected]> Signed-off-by: Yury-Fridlyand <[email protected]> Co-authored-by: Yury-Fridlyand <[email protected]>
node/src/BaseClient.ts
Outdated
public async hgetall(key: string): Promise<Record<string, string>> { | ||
return this.createWritePromise(createHGetAll(key)); | ||
public async hgetall( | ||
key: string, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This branch is not synced with main? I have this as GlideString in local.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This branch updates only return type of these commands
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merged and fixed, please validate
Signed-off-by: Yury-Fridlyand <[email protected]>
Signed-off-by: Yury-Fridlyand <[email protected]>
* Node: add binary support for PubSub commands, part 1 (valkey-io#2201) * Add binary variant to PUBSUB subscribe commands --------- Signed-off-by: Yi-Pin Chen <[email protected]>
…93-return-record-with-glidestring Signed-off-by: Yury-Fridlyand <[email protected]>
* Fix processing cluster response. Signed-off-by: Yury-Fridlyand <[email protected]> Co-authored-by: Andrew Carbonetto <[email protected]>
…93-return-record-with-glidestring Signed-off-by: Yury-Fridlyand <[email protected]>
Record
with GlideString
.Record
with GlideString
.
…93-return-record-with-glidestring Signed-off-by: Yury-Fridlyand <[email protected]>
…93-return-record-with-glidestring Signed-off-by: Yury-Fridlyand <[email protected]>
…93-return-record-with-glidestring Signed-off-by: Yury-Fridlyand <[email protected]>
…93-return-record-with-glidestring Signed-off-by: Yury-Fridlyand <[email protected]>
…93-return-record-with-glidestring Signed-off-by: Yury-Fridlyand <[email protected]>
…lkey-io#2207) * returning a record replacement with glide strings. * Node: Add binary variant to `PUBSUB NUMSUB` and `PUBSUB SHARDNUMSUB` (valkey-io#419) * Updated PubSub shardnumsub and numsub commands * Fix tests. * Add binary variant to PUBSUB subscribe commands * Fix processing cluster response. Signed-off-by: Yury-Fridlyand <[email protected]> Signed-off-by: Yi-Pin Chen <[email protected]> Co-authored-by: Andrew Carbonetto <[email protected]> Co-authored-by: Yi-Pin Chen <[email protected]>
Note: only return type is changed in scope of this PR. Input arguments for these commands will be updated in other PRs.
TODO:
ClusterValue
List of commands:
LMPOP
BLMPOP
BZMPOP
ZPOPMIN
ZPOPMAX
ZMPOP
ZDIFFWITHSCORES
ZINTERWITHSCORES
ZUNIONWITHSCORES
HGETALL
LCSIDX
- no return type changePUBSUB NUMSUB
- DonePUBSUB SHARDNUMSUB
- DonePSubscribe
,Subscribe
,SSubscribe
,Unsubscribe
,SUnsubscribe
,PUnsubscribe
XRANGE
- no return type changeXREVRANGE
- no return type changeXINFO GROUPS
- no return type changeXINFO CONSUMERS
- no return type changeXINFO STREAM
- no return type changeXCLAIM
- no return type changeXAUTOCLAIM
- no return type changeXREAD
XREADGROUP
Notes:
HGETALL
returnsHashDataType
, but if called in a transaction, it returnsGlideRecord<GlideString>
.