Class ConfigureNotifyKeyspaceEventsAction
java.lang.Object
org.springframework.session.data.redis.config.ConfigureNotifyKeyspaceEventsAction
- All Implemented Interfaces:
ConfigureRedisAction
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
ConfigureRedisAction.NO_OP
should be exposed.
- Since:
- 1.0.1
-
Field Summary
Fields inherited from interface org.springframework.session.data.redis.config.ConfigureRedisAction
NO_OP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(org.springframework.data.redis.connection.RedisConnection connection)
-
Constructor Details
-
ConfigureNotifyKeyspaceEventsAction
public ConfigureNotifyKeyspaceEventsAction()
-
-
Method Details
-
configure
public void configure(org.springframework.data.redis.connection.RedisConnection connection) - Specified by:
configure
in interfaceConfigureRedisAction
-