@@ -1834,14 +1834,14 @@ public Long sunionstore(final byte[] dstkey, final byte[]... keys) {
18341834 * Return the difference between the Set stored at key1 and all the Sets key2, ..., keyN
18351835 * <p>
18361836 * <b>Example:</b>
1837- *
1837+ *
18381838 * <pre>
18391839 * key1 = [x, a, b, c]
18401840 * key2 = [c]
18411841 * key3 = [a, d]
18421842 * SDIFF key1,key2,key3 => [x, b]
18431843 * </pre>
1844- *
1844+ *
18451845 * Non existing keys are considered like empty sets.
18461846 * <p>
18471847 * <b>Time complexity:</b>
@@ -1941,6 +1941,13 @@ public Long zadd(final byte[] key, final Map<byte[], Double> scoreMembers, final
19411941 return client .getIntegerReply ();
19421942 }
19431943
1944+ @ Override
1945+ public Double zaddIncr (final byte [] key , final double score , final byte [] member , final ZAddParams params ) {
1946+ checkIsInMultiOrPipeline ();
1947+ client .zaddIncr (key , score , member , params );
1948+ return BuilderFactory .DOUBLE .build (client .getOne ());
1949+ }
1950+
19441951 @ Override
19451952 public Set <byte []> zrange (final byte [] key , final long start , final long stop ) {
19461953 checkIsInMultiOrPipeline ();
@@ -2199,65 +2206,65 @@ public List<byte[]> sort(final byte[] key) {
21992206 * <b>examples:</b>
22002207 * <p>
22012208 * Given are the following sets and key/values:
2202- *
2209+ *
22032210 * <pre>
22042211 * x = [1, 2, 3]
22052212 * y = [a, b, c]
2206- *
2213+ *
22072214 * k1 = z
22082215 * k2 = y
22092216 * k3 = x
2210- *
2217+ *
22112218 * w1 = 9
22122219 * w2 = 8
22132220 * w3 = 7
22142221 * </pre>
2215- *
2222+ *
22162223 * Sort Order:
2217- *
2224+ *
22182225 * <pre>
22192226 * sort(x) or sort(x, sp.asc())
22202227 * -> [1, 2, 3]
2221- *
2228+ *
22222229 * sort(x, sp.desc())
22232230 * -> [3, 2, 1]
2224- *
2231+ *
22252232 * sort(y)
22262233 * -> [c, a, b]
2227- *
2234+ *
22282235 * sort(y, sp.alpha())
22292236 * -> [a, b, c]
2230- *
2237+ *
22312238 * sort(y, sp.alpha().desc())
22322239 * -> [c, a, b]
22332240 * </pre>
2234- *
2241+ *
22352242 * Limit (e.g. for Pagination):
2236- *
2243+ *
22372244 * <pre>
22382245 * sort(x, sp.limit(0, 2))
22392246 * -> [1, 2]
2240- *
2247+ *
22412248 * sort(y, sp.alpha().desc().limit(1, 2))
22422249 * -> [b, a]
22432250 * </pre>
2244- *
2251+ *
22452252 * Sorting by external keys:
2246- *
2253+ *
22472254 * <pre>
22482255 * sort(x, sb.by(w*))
22492256 * -> [3, 2, 1]
2250- *
2257+ *
22512258 * sort(x, sb.by(w*).desc())
22522259 * -> [1, 2, 3]
22532260 * </pre>
2254- *
2261+ *
22552262 * Getting external keys:
2256- *
2263+ *
22572264 * <pre>
22582265 * sort(x, sp.by(w*).get(k*))
22592266 * -> [x, y, z]
2260- *
2267+ *
22612268 * sort(x, sp.by(w*).get(#).get(k*))
22622269 * -> [3, x, 2, y, 1, z]
22632270 * </pre>
@@ -3192,7 +3199,7 @@ public String shutdown() {
31923199 * <b>Format of the returned String:</b>
31933200 * <p>
31943201 * All the fields are in the form field:value
3195- *
3202+ *
31963203 * <pre>
31973204 * edis_version:0.07
31983205 * connected_clients:1
@@ -3205,7 +3212,7 @@ public String shutdown() {
32053212 * uptime_in_seconds:25
32063213 * uptime_in_days:0
32073214 * </pre>
3208- *
3215+ *
32093216 * <b>Notes</b>
32103217 * <p>
32113218 * used_memory is returned in bytes, and is the total number of bytes allocated by the program
@@ -3287,7 +3294,7 @@ public String slaveofNoOne() {
32873294 * are reported as a list of key-value pairs.
32883295 * <p>
32893296 * <b>Example:</b>
3290- *
3297+ *
32913298 * <pre>
32923299 * $ redis-cli config get '*'
32933300 * 1. "dbfilename"
@@ -3302,7 +3309,7 @@ public String slaveofNoOne() {
33023309 * 10. "everysec"
33033310 * 11. "save"
33043311 * 12. "3600 1 300 100 60 10000"
3305- *
3312+ *
33063313 * $ redis-cli config get 'm*'
33073314 * 1. "masterauth"
33083315 * 2. (nil)
0 commit comments