Class ConfigureNotifyKeyspaceEventsAction

java.lang.Object
org.springframework.session.data.redis.config.ConfigureNotifyKeyspaceEventsAction
All Implemented Interfaces:
ConfigureRedisAction

public class ConfigureNotifyKeyspaceEventsAction extends 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.

Since:
1.0.1
  • Constructor Details

    • ConfigureNotifyKeyspaceEventsAction

      public ConfigureNotifyKeyspaceEventsAction()
  • Method Details

    • configure

      public void configure(org.springframework.data.redis.connection.RedisConnection connection)
      Specified by:
      configure in interface ConfigureRedisAction