Class ConfigureNotifyKeyspaceEventsReactiveAction
java.lang.Object
org.springframework.session.data.redis.config.annotation.ConfigureNotifyKeyspaceEventsReactiveAction
- All Implemented Interfaces:
ConfigureReactiveRedisAction
public class ConfigureNotifyKeyspaceEventsReactiveAction
extends Object
implements ConfigureReactiveRedisAction
Ensures that Redis Keyspace events for Generic commands and Expired events are enabled. For example, it might set the following:
config set notify-keyspace-events Egx
This strategy will not work if the Redis instance has been properly secured. Instead,
the Redis instance should be configured externally and a Bean of type
ConfigureReactiveRedisAction.NO_OP
should be exposed.
- Since:
- 3.3
-
Field Summary
Fields inherited from interface org.springframework.session.data.redis.config.ConfigureReactiveRedisAction
NO_OP
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ConfigureNotifyKeyspaceEventsReactiveAction
public ConfigureNotifyKeyspaceEventsReactiveAction()
-
-
Method Details
-
configure
public reactor.core.publisher.Mono<Void> configure(org.springframework.data.redis.connection.ReactiveRedisConnection connection) - Specified by:
configure
in interfaceConfigureReactiveRedisAction
-