DATAREDIS-694 - Polishing.

Adapt Lettuce implementation to use async commands in transaction mode. Adapt tests to changed behavior of returning status responses. Extend Javadoc.

Original pull request: #284.
This commit is contained in:
Mark Paluch
2017-11-02 11:21:39 +01:00
parent 8a640a29b6
commit 941b448072
3 changed files with 11 additions and 10 deletions

View File

@@ -69,9 +69,7 @@ import org.springframework.data.redis.core.ScanOptions;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.data.redis.core.types.Expiration;
import org.springframework.data.redis.core.types.RedisClientInfo;
import org.springframework.data.redis.serializer.JdkSerializationRedisSerializer;
import org.springframework.data.redis.serializer.RedisSerializer;
import org.springframework.data.redis.serializer.StringRedisSerializer;
import org.springframework.data.redis.test.util.RedisClientRule;
import org.springframework.data.redis.test.util.RedisDriver;
import org.springframework.data.redis.test.util.WithRedisDriver;
@@ -2778,11 +2776,10 @@ public abstract class AbstractConnectionIntegrationTests {
@Test // DATAREDIS-694
public void touchReturnsNrOfKeysTouched() {
connection.set("touch.this", "Can't touch this! - oh-oh oh oh oh-oh-oh");
actual.add(connection.set("touch.this", "Can't touch this! - oh-oh oh oh oh-oh-oh"));
actual.add(connection.touch("touch.this", "touch.that"));
verifyResults(Arrays.asList(new Object[] { 1L }));
verifyResults(Arrays.asList(new Object[] { Boolean.TRUE, 1L }));
}
@Test // DATAREDIS-694