use of org.apereo.cas.redis.core.RedisObjectFactory 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);
}
use of org.apereo.cas.redis.core.RedisObjectFactory in project cas by apereo.
the class RedisTicketRegistryConfiguration method redisTicketConnectionFactory.
@ConditionalOnMissingBean(name = "redisTicketConnectionFactory")
@Bean
public RedisConnectionFactory redisTicketConnectionFactory() {
final RedisTicketRegistryProperties redis = casProperties.getTicket().getRegistry().getRedis();
final RedisObjectFactory obj = new RedisObjectFactory();
return obj.newRedisConnectionFactory(redis);
}
use of org.apereo.cas.redis.core.RedisObjectFactory in project cas by apereo.
the class CasMetricsRepositoryConfiguration method redisMetricWriter.
@ConditionalOnProperty(prefix = "cas.metrics.redis", name = "prefix")
@Bean
@ExportMetricWriter
public MetricWriter redisMetricWriter() {
final MetricsProperties.Redis redis = casProperties.getMetrics().getRedis();
final RedisObjectFactory factory = new RedisObjectFactory();
final RedisConnectionFactory connectionFactory = factory.newRedisConnectionFactory(redis);
return new RedisMetricRepository(connectionFactory, redis.getPrefix(), redis.getKey());
}
Aggregations