Skip to content

Allow adding specific keyspace/keyevent topic(s) with KeyspaceEventMessageListener #2757

Open
@wbrco

Description

@wbrco

Redis allows for more specific psubscribe filters allowing for subscription to specific keys, or specific events as documented in https://redis.io/docs/manual/keyspace-notifications/

However, the Spring KeyspaceEventMessageListener subscribes to "__keyevent@*", which doesn't include keyspace events, and provides all events.

This requires the programmer to filter every event for both the event type, and the key to see if the event is actionable.

Can a mechanism be added such that a more finite subscription topic be specified, e.g. an overload constructor allows a topic String, or other Setter that can be specified, and then call afterProperties() or init()?

Metadata

Metadata

Assignees

Labels

for: team-attentionAn issue we need to discuss as a team to make progressin:messagingRedis messaging componentstype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions