diff --git a/.travis.yml b/.travis.yml
index 05fd5da95..7d7dc90ea 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,9 +5,6 @@ jdk:
env:
matrix:
- - PROFILE=spring42
- - PROFILE=spring42-next
- - PROFILE=spring43-next
- PROFILE=spring5-next
addons:
diff --git a/src/main/java/org/springframework/data/redis/connection/ReactiveGeoCommands.java b/src/main/java/org/springframework/data/redis/connection/ReactiveGeoCommands.java
index b2510c8b7..62cebeed6 100644
--- a/src/main/java/org/springframework/data/redis/connection/ReactiveGeoCommands.java
+++ b/src/main/java/org/springframework/data/redis/connection/ReactiveGeoCommands.java
@@ -25,14 +25,12 @@ import java.util.Collections;
import java.util.List;
import java.util.Optional;
import java.util.Set;
-import java.util.stream.Collectors;
import org.reactivestreams.Publisher;
import org.springframework.data.domain.Sort.Direction;
import org.springframework.data.geo.Circle;
import org.springframework.data.geo.Distance;
import org.springframework.data.geo.GeoResult;
-import org.springframework.data.geo.GeoResults;
import org.springframework.data.geo.Metric;
import org.springframework.data.geo.Point;
import org.springframework.data.redis.connection.ReactiveRedisConnection.CommandResponse;
@@ -859,9 +857,8 @@ public interface ReactiveGeoCommands {
* @return
* @see Redis Documentation: GEORADIUS
*/
- default Mono>> geoRadius(ByteBuffer key, Circle circle) {
- return geoRadius(key, circle, null)
- .map(res -> res.getContent().stream().map(GeoResult::getContent).collect(Collectors.toList()));
+ default Flux>> geoRadius(ByteBuffer key, Circle circle) {
+ return geoRadius(key, circle, null);
}
/**
@@ -873,14 +870,14 @@ public interface ReactiveGeoCommands {
* @return
* @see Redis Documentation: GEORADIUS
*/
- default Mono>> geoRadius(ByteBuffer key, Circle circle,
+ default Flux>> geoRadius(ByteBuffer key, Circle circle,
GeoRadiusCommandArgs geoRadiusArgs) {
Assert.notNull(key, "Key must not be null!");
Assert.notNull(circle, "Circle must not be null!");
return geoRadius(Mono.just(GeoRadiusCommand.within(circle).withArgs(geoRadiusArgs).forKey(key))).next()
- .map(CommandResponse::getOutput);
+ .flatMapMany(CommandResponse::getOutput);
}
/**
@@ -890,7 +887,7 @@ public interface ReactiveGeoCommands {
* @return
* @see Redis Documentation: GEORADIUS
*/
- Flux>>> geoRadius(
+ Flux>>>> geoRadius(
Publisher commands);
/**
@@ -1184,9 +1181,9 @@ public interface ReactiveGeoCommands {
* @return
* @see Redis Documentation: GEORADIUSBYMEMBER
*/
- default Mono>> geoRadiusByMember(ByteBuffer key, ByteBuffer member, Distance distance) {
- return geoRadiusByMember(key, member, distance, null)
- .map(res -> res.getContent().stream().map(GeoResult::getContent).collect(Collectors.toList()));
+ default Flux>> geoRadiusByMember(ByteBuffer key, ByteBuffer member,
+ Distance distance) {
+ return geoRadiusByMember(key, member, distance, null);
}
/**
@@ -1198,7 +1195,7 @@ public interface ReactiveGeoCommands {
* @return
* @see Redis Documentation: GEORADIUSBYMEMBER
*/
- default Mono>> geoRadiusByMember(ByteBuffer key, ByteBuffer member,
+ default Flux>> geoRadiusByMember(ByteBuffer key, ByteBuffer member,
Distance distance, GeoRadiusCommandArgs geoRadiusArgs) {
Assert.notNull(key, "Key must not be null!");
@@ -1207,7 +1204,7 @@ public interface ReactiveGeoCommands {
return geoRadiusByMember(
Mono.just(GeoRadiusByMemberCommand.within(distance).from(member).forKey(key).withArgs(geoRadiusArgs))).next()
- .map(CommandResponse::getOutput);
+ .flatMapMany(CommandResponse::getOutput);
}
/**
@@ -1217,6 +1214,6 @@ public interface ReactiveGeoCommands {
* @return
* @see Redis Documentation: GEORADIUSBYMEMBER
*/
- Flux>>> geoRadiusByMember(
+ Flux>>>> geoRadiusByMember(
Publisher commands);
}
diff --git a/src/main/java/org/springframework/data/redis/connection/ReactiveHashCommands.java b/src/main/java/org/springframework/data/redis/connection/ReactiveHashCommands.java
index df64c100b..a0d3ee094 100644
--- a/src/main/java/org/springframework/data/redis/connection/ReactiveHashCommands.java
+++ b/src/main/java/org/springframework/data/redis/connection/ReactiveHashCommands.java
@@ -516,11 +516,11 @@ public interface ReactiveHashCommands {
* @return
* @see Redis Documentation: HKEYS
*/
- default Mono> hKeys(ByteBuffer key) {
+ default Flux hKeys(ByteBuffer key) {
Assert.notNull(key, "Key must not be null!");
- return hKeys(Mono.just(new KeyCommand(key))).next().map(MultiValueResponse::getOutput);
+ return hKeys(Mono.just(new KeyCommand(key))).next().flatMapMany(CommandResponse::getOutput);
}
/**
@@ -530,7 +530,7 @@ public interface ReactiveHashCommands {
* @return
* @see Redis Documentation: HKEYS
*/
- Flux> hKeys(Publisher commands);
+ Flux>> hKeys(Publisher commands);
/**
* Get entry set (values) of hash at {@literal key}.
@@ -539,11 +539,11 @@ public interface ReactiveHashCommands {
* @return
* @see Redis Documentation: HVALS
*/
- default Mono> hVals(ByteBuffer key) {
+ default Flux hVals(ByteBuffer key) {
Assert.notNull(key, "Key must not be null!");
- return hVals(Mono.just(new KeyCommand(key))).next().map(MultiValueResponse::getOutput);
+ return hVals(Mono.just(new KeyCommand(key))).next().flatMapMany(CommandResponse::getOutput);
}
/**
@@ -553,7 +553,7 @@ public interface ReactiveHashCommands {
* @return
* @see Redis Documentation: HVALS
*/
- Flux> hVals(Publisher commands);
+ Flux>> hVals(Publisher commands);
/**
* Get entire hash stored at {@literal key}.
@@ -562,11 +562,11 @@ public interface ReactiveHashCommands {
* @return
* @see Redis Documentation: HGETALL
*/
- default Mono