Search in sources :

Example 1 with RedisServiceRegistryProperties

use of org.apereo.cas.configuration.model.support.redis.RedisServiceRegistryProperties in project cas by apereo.

the class RedisServiceRegistryConfiguration method redisConnectionFactory.

@Bean
@RefreshScope
public RedisConnectionFactory redisConnectionFactory() {
    final RedisServiceRegistryProperties redis = casProperties.getServiceRegistry().getRedis();
    final RedisObjectFactory obj = new RedisObjectFactory();
    return obj.newRedisConnectionFactory(redis);
}
Also used : RedisServiceRegistryProperties(org.apereo.cas.configuration.model.support.redis.RedisServiceRegistryProperties) RedisObjectFactory(org.apereo.cas.redis.core.RedisObjectFactory) RefreshScope(org.springframework.cloud.context.config.annotation.RefreshScope) Bean(org.springframework.context.annotation.Bean)

Aggregations

RedisServiceRegistryProperties (org.apereo.cas.configuration.model.support.redis.RedisServiceRegistryProperties)1 RedisObjectFactory (org.apereo.cas.redis.core.RedisObjectFactory)1 RefreshScope (org.springframework.cloud.context.config.annotation.RefreshScope)1 Bean (org.springframework.context.annotation.Bean)1