diff --git a/src/main/java/org/springframework/data/redis/support/atomic/RedisAtomicInteger.java b/src/main/java/org/springframework/data/redis/support/atomic/RedisAtomicInteger.java index 09a26027f..e11c6dd5e 100644 --- a/src/main/java/org/springframework/data/redis/support/atomic/RedisAtomicInteger.java +++ b/src/main/java/org/springframework/data/redis/support/atomic/RedisAtomicInteger.java @@ -18,6 +18,7 @@ package org.springframework.data.redis.support.atomic; import java.io.Serializable; import java.util.Collections; import java.util.Date; +import java.util.List; import java.util.concurrent.TimeUnit; import org.springframework.data.redis.connection.DataType; @@ -171,7 +172,9 @@ public class RedisAtomicInteger extends Number implements Serializable, BoundKey if (expect == get()) { generalOps.multi(); set(update); - if (operations.exec() != null) { + List results = operations.exec(); + if (results != null) { + System.out.println(results); return true; } }