With redis pipelining, how does redis keep track that the last 4 calls that were pipelined are to be returned in the single response back?To they get wrapped in some sort of a "transaction" that redis keeps appending to and then sends the response back grouped together?
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To post to this group, send email to redi...@googlegroups.com.
To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.
Pipeline p = jedis.pipelined(); p.set("fool", "bar"); p.zadd("foo", 1, "barowitch"); p.zadd("foo", 0, "barinsky"); p.zadd("foo", 0, "barikoviev"); Response<String> pipeString = p.get("fool"); Response<Set<String>> sose = p.zrange("foo", 0, -1); p.sync(); int soseSize = sose.get().size(); Set<String> setBack = sose.get();
Just to defend the jedis library a little, the "Response" class in jedis is actually a future, its name should probably be changed to better indicate that. I have worked with a number of client libraries and I am very impressed with the simplicity and design of this library. I have a pull request out to add the async reading you mentioned if anyone is interested.