Skip to content

Comments

feat(sentinel): add sSubscribe/sUnsubscribe methods to Sentinel client#3178

Open
nkaradzhov wants to merge 1 commit intoredis:masterfrom
nkaradzhov:sentinel-methods
Open

feat(sentinel): add sSubscribe/sUnsubscribe methods to Sentinel client#3178
nkaradzhov wants to merge 1 commit intoredis:masterfrom
nkaradzhov:sentinel-methods

Conversation

@nkaradzhov
Copy link
Collaborator

Add sharded pub/sub methods (sSubscribe/sUnsubscribe) to the Sentinel client for API consistency with the standalone Redis client. Since Sentinel manages a single master with no sharding, these methods provide no sharding benefit - they simply pass through to the underlying Redis commands. This enables compatibility with libraries like @socket.io/redis-adapter that expect the sSubscribe method to be available.

fixes #3177

Description

Describe your pull request here


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)?

Add sharded pub/sub methods (sSubscribe/sUnsubscribe) to the Sentinel client
for API consistency with the standalone Redis client. Since Sentinel manages
a single master with no sharding, these methods provide no sharding benefit -
they simply pass through to the underlying Redis commands. This enables
compatibility with libraries like @socket.io/redis-adapter that expect
the sSubscribe method to be available.

fixes redis#3177
Copy link
Contributor

@PavelPashov PavelPashov left a comment

Choose a reason for hiding this comment

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

LGTM

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.

There is no sSubscribe method on redisClient object when using redis sentinel with node-redis

2 participants