Merge branch 'master' of https://github.com/gcasanova/tutorials into gcasanova-master
This commit is contained in:
commit
16a9492017
|
@ -191,10 +191,10 @@ public class JedisTest {
|
||||||
public void givenAPoolConfigurationThenCreateAJedisPool() {
|
public void givenAPoolConfigurationThenCreateAJedisPool() {
|
||||||
final JedisPoolConfig poolConfig = buildPoolConfig();
|
final JedisPoolConfig poolConfig = buildPoolConfig();
|
||||||
|
|
||||||
try (JedisPool jedisPool = new JedisPool(poolConfig, "localhost");
|
try (JedisPool jedisPool = new JedisPool(poolConfig, "localhost"); Jedis jedis = jedisPool.getResource()) {
|
||||||
Jedis jedis = jedisPool.getResource()) {
|
|
||||||
|
|
||||||
// do simple operation to verify that the Jedis resource is working properly
|
// do simple operation to verify that the Jedis resource is working
|
||||||
|
// properly
|
||||||
String key = "key";
|
String key = "key";
|
||||||
String value = "value";
|
String value = "value";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue