spring-session-data-redis/src/main/java/org/springframework/session/data/redis/config/ConfigureNotifyKeyspaceEventsAction.java
@Override
	public void configure(RedisConnection connection) {
		String notifyOptions = getNotifyOptions(connection);
		String customizedNotifyOptions = notifyOptions;
		if (!customizedNotifyOptions.contains("E")) {
			customizedNotifyOptions += "E";
		}
		boolean A = customizedNotifyOptions.contains("A");
		if (!(A || customizedNotifyOptions.contains("g"))) {
			customizedNotifyOptions += "g";
		}
		if (!(A || customizedNotifyOptions.contains("x"))) {
			customizedNotifyOptions += "x";
		}
		if (!notifyOptions.equals(customizedNotifyOptions)) {
			connection.setConfig(CONFIG_NOTIFY_KEYSPACE_EVENTS, customizedNotifyOptions);
		}
	}
@Override
	public void configure(RedisConnection connection) {
		String notifyOptions = getNotifyOptions(connection);
		String customizedNotifyOptions = notifyOptions;
		if (!customizedNotifyOptions.contains("E")) {
			customizedNotifyOptions += "E";
		}
		boolean A = customizedNotifyOptions.contains("A");
		if (!(A || customizedNotifyOptions.contains("g"))) {
			customizedNotifyOptions += "g";
		}
		if (!(A || customizedNotifyOptions.contains("x"))) {
			customizedNotifyOptions += "x";
		}
		if (!notifyOptions.equals(customizedNotifyOptions)) {
			connection.setConfig(CONFIG_NOTIFY_KEYSPACE_EVENTS, customizedNotifyOptions);
		}
	}
@ Override public void configure ( RedisConnection connection ) { String notifyOptions = getNotifyOptions ( connection ) ; String customizedNotifyOptions = notifyOptions ; if ( ! customizedNotifyOptions . contains ( "E" ) ) { customizedNotifyOptions += "E" ; } boolean A = customizedNotifyOptions . contains ( "A" ) ; if ( ! ( A || customizedNotifyOptions . contains ( "g" ) ) ) { customizedNotifyOptions += "g" ; } if ( ! ( A || customizedNotifyOptions . contains ( "x" ) ) ) { customizedNotifyOptions += "x" ; } if ( ! notifyOptions . equals ( customizedNotifyOptions ) ) { connection . setConfig ( CONFIG_NOTIFY_KEYSPACE_EVENTS , customizedNotifyOptions ) ; } }
/*
(non-Javadoc)

@see
org.springframework.session.data.redis.config.ConfigureRedisAction#configure(org.
springframework.data.redis.connection.RedisConnection)
/ * ( non - Javadoc )