You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Update RedisOperations#convertAndSend to return number of subscribers #2209
Currently, RedisOperations#convertAndSend is void event though the underlying RedisPubSubCommands#publish returns a Long that represents the number of subscribers receiving the published message (see https://redis.io/commands/publish).
The information about the number of subscribers can be useful in some scenarios, and is also returned by the reactive counterpart in ReactiveRedisOperations#convertAndSend.
Digging through the history of RedisOperations, it seems that #convertAndSend used to return Long for a brief period of time in 2013: it was introduced in b35f6a3 and reverted in d46bee7.
I understand that adding return value would be a breaking change, but the impact doesn't seem to be too big (?). I'm willing to submit a PR to address this, if the change is welcome.
Thanks for the report. Seems the method signature was reverted to keep binary compatibility. We could consider the change for the next major revision of Spring Data Redis.
Activity
mp911de commentedon Dec 7, 2021
Thanks for the report. Seems the method signature was reverted to keep binary compatibility. We could consider the change for the next major revision of Spring Data Redis.
Update `RedisOperations#convertAndSend` to return number of clients r…
Update `RedisOperations#convertAndSend` to return number of clients r…
Update `RedisOperations#convertAndSend` to return number of clients r…
Polishing.
Polishing.
Polishing.
Update `RedisOperations#convertAndSend` to return number of clients r…