Quantcast
Channel: Active questions tagged redis+java - Stack Overflow
Viewing all articles
Browse latest Browse all 2204

Lettuce Reactive - Get All Set Values?

$
0
0

I'm trying to get all of a sets values for a key, but I'm finding that each value is being sent one at a time:

ZADD colors 0 "blue"ZADD colors 1 "green"ZADD colors 2 "red"
redis.zrangebyscore("colors", Range.create(0, Double.POSITIVE_INFINITY)).subscribe((c) -> {  System.out.println(c);});

This results in:

"blue""green""red"

But I would like to receive this as a list in subscribe. Is there anyway to get back the entire list here?


Viewing all articles
Browse latest Browse all 2204

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>