public class ConfigureNotifyKeyspaceEventsAction extends java.lang.Object implements 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.
NO_OP
Constructor and Description |
---|
ConfigureNotifyKeyspaceEventsAction() |
Modifier and Type | Method and Description |
---|---|
void |
configure(org.springframework.data.redis.connection.RedisConnection connection) |
public void configure(org.springframework.data.redis.connection.RedisConnection connection)
configure
in interface ConfigureRedisAction