DATAREDIS-588 - Use JedisCluster.psetex(…) instead dispatching to a node.

We now use JedisCluster's psetex command instead of looking up the topology and dispatching the command ourselves.

Original Pull Request: #463
This commit is contained in:
Mark Paluch
2019-06-28 13:24:17 +02:00
committed by Christoph Strobl
parent 15fd1d38de
commit 7f9aca031a
2 changed files with 8 additions and 9 deletions

View File

@@ -1836,9 +1836,9 @@ public class JedisClusterConnectionTests implements ClusterConnectionTests {
nativeConnection.set(KEY_1_BYTES, VALUE_1_BYTES);
clusterConnection.set(KEY_1_BYTES, VALUE_2_BYTES, Expiration.persistent(), SetOption.ifPresent());
assertThat(nativeConnection.exists(KEY_1_BYTES), is(true));
assertThat(clusterConnection.get(KEY_1_BYTES), is(VALUE_2_BYTES));
assertThat(nativeConnection.ttl(KEY_1_BYTES), is(-1L));
assertThat(nativeConnection.exists(KEY_1_BYTES)).isTrue();
assertThat(clusterConnection.get(KEY_1_BYTES)).isEqualTo(VALUE_2_BYTES);
assertThat(nativeConnection.ttl(KEY_1_BYTES)).isEqualTo(-1L);
}
@Test // DATAREDIS-315