use of org.springframework.data.redis.connection.RedisConnectionFactory in project jetcache by alibaba.
the class RedisSpringDataCacheTest method jedisTest.
@Test
public void jedisTest() throws Exception {
RedisConnectionFactory connectionFactory = new JedisConnectionFactory();
doTest(connectionFactory);
}
use of org.springframework.data.redis.connection.RedisConnectionFactory in project spring-cloud-connectors by spring-cloud.
the class RedisConnectionFactoryXmlConfigTest method cloudRedisConnectionFactoryWithMaxPool.
@Test
public void cloudRedisConnectionFactoryWithMaxPool() {
ApplicationContext testContext = getTestApplicationContext("cloud-redis-with-config.xml", createService("my-service"));
RedisConnectionFactory connector = testContext.getBean("service-pool20-wait200", getConnectorType());
RedisConnectionFactoryCloudConfigTestHelper.assertPoolProperties(connector, 20, 0, 200);
}
use of org.springframework.data.redis.connection.RedisConnectionFactory in project spring-cloud-connectors by spring-cloud.
the class RedisConnectionFactoryConfigWithServiceConfig method cloudRedisConnectionFactoryWithMaxPool.
@Test
public void cloudRedisConnectionFactoryWithMaxPool() {
ApplicationContext testContext = getTestApplicationContext(RedisConnectionFactoryConfigWithServiceConfig.class, createService("my-service"));
RedisConnectionFactory connector = testContext.getBean("pool20Wait200", getConnectorType());
RedisConnectionFactoryCloudConfigTestHelper.assertPoolProperties(connector, 20, 0, 200);
}
use of org.springframework.data.redis.connection.RedisConnectionFactory in project spring-cloud-connectors by spring-cloud.
the class RedisConnectionFactoryConfigWithServiceConfig method cloudRedisConnectionFactoryWithNoPool.
@Test
public void cloudRedisConnectionFactoryWithNoPool() {
ApplicationContext testContext = getTestApplicationContext(RedisConnectionFactoryConfigWithServiceConfig.class, createService("my-service"));
RedisConnectionFactory connector = testContext.getBean("noPool", getConnectorType());
RedisConnectionFactoryCloudConfigTestHelper.assertNoPoolProperties(connector);
}
use of org.springframework.data.redis.connection.RedisConnectionFactory in project spring-cloud-connectors by spring-cloud.
the class RedisServiceConnectorCreatorTest method cloudRedisCreationSecureConnection.
@Test
public void cloudRedisCreationSecureConnection() {
RedisServiceInfo serviceInfo = createServiceInfo(RedisServiceInfo.REDISS_SCHEME);
RedisConnectionFactory dataSource = testCreator.create(serviceInfo, null);
assertConnectorProperties(serviceInfo, dataSource, true);
}
Aggregations