/** * Get the {@link RedisConnectionFactory} object for the specified Redis service. * * This is equivalent to the <cloud:redis-connection-factory service-id="serviceId"> element. * * @param serviceId the name of the service * @return redis connection factory * @throws CloudException if the specified service doesn't exist */ public RedisConnectionFactory redisConnectionFactory(String serviceId) { return redisConnectionFactory(serviceId, null); }
/** * Get the {@link RedisConnectionFactory} object associated with the only Redis service bound to the app. * * This is equivalent to the <cloud:redis-connection-factory/> element * * @return redis connection factory * @throws CloudException if there are either 0 or more than 1 redis services. */ public RedisConnectionFactory redisConnectionFactory() { return redisConnectionFactory((PooledServiceConnectorConfig)null); }