The listeners need to be configured in the RedisConfig class via Beans. These beans can then invoke complex business logic based on requirements.