@@ -1840,14 +1840,14 @@ public Long sunionstore(final byte[] dstkey, final byte[]... keys) {
18401840 * Return the difference between the Set stored at key1 and all the Sets key2, ..., keyN
18411841 * <p>
18421842 * <b>Example:</b>
1843- *
1843+ *
18441844 * <pre>
18451845 * key1 = [x, a, b, c]
18461846 * key2 = [c]
18471847 * key3 = [a, d]
18481848 * SDIFF key1,key2,key3 => [x, b]
18491849 * </pre>
1850- *
1850+ *
18511851 * Non existing keys are considered like empty sets.
18521852 * <p>
18531853 * <b>Time complexity:</b>
@@ -1947,6 +1947,13 @@ public Long zadd(final byte[] key, final Map<byte[], Double> scoreMembers, final
19471947 return client .getIntegerReply ();
19481948 }
19491949
1950+ @ Override
1951+ public Double zaddIncr (final byte [] key , final double score , final byte [] member , final ZAddParams params ) {
1952+ checkIsInMultiOrPipeline ();
1953+ client .zaddIncr (key , score , member , params );
1954+ return BuilderFactory .DOUBLE .build (client .getOne ());
1955+ }
1956+
19501957 @ Override
19511958 public Set <byte []> zrange (final byte [] key , final long start , final long stop ) {
19521959 checkIsInMultiOrPipeline ();
@@ -2205,65 +2212,65 @@ public List<byte[]> sort(final byte[] key) {
22052212 * <b>examples:</b>
22062213 * <p>
22072214 * Given are the following sets and key/values:
2208- *
2215+ *
22092216 * <pre>
22102217 * x = [1, 2, 3]
22112218 * y = [a, b, c]
2212- *
2219+ *
22132220 * k1 = z
22142221 * k2 = y
22152222 * k3 = x
2216- *
2223+ *
22172224 * w1 = 9
22182225 * w2 = 8
22192226 * w3 = 7
22202227 * </pre>
2221- *
2228+ *
22222229 * Sort Order:
2223- *
2230+ *
22242231 * <pre>
22252232 * sort(x) or sort(x, sp.asc())
22262233 * -> [1, 2, 3]
2227- *
2234+ *
22282235 * sort(x, sp.desc())
22292236 * -> [3, 2, 1]
2230- *
2237+ *
22312238 * sort(y)
22322239 * -> [c, a, b]
2233- *
2240+ *
22342241 * sort(y, sp.alpha())
22352242 * -> [a, b, c]
2236- *
2243+ *
22372244 * sort(y, sp.alpha().desc())
22382245 * -> [c, a, b]
22392246 * </pre>
2240- *
2247+ *
22412248 * Limit (e.g. for Pagination):
2242- *
2249+ *
22432250 * <pre>
22442251 * sort(x, sp.limit(0, 2))
22452252 * -> [1, 2]
2246- *
2253+ *
22472254 * sort(y, sp.alpha().desc().limit(1, 2))
22482255 * -> [b, a]
22492256 * </pre>
2250- *
2257+ *
22512258 * Sorting by external keys:
2252- *
2259+ *
22532260 * <pre>
22542261 * sort(x, sb.by(w*))
22552262 * -> [3, 2, 1]
2256- *
2263+ *
22572264 * sort(x, sb.by(w*).desc())
22582265 * -> [1, 2, 3]
22592266 * </pre>
2260- *
2267+ *
22612268 * Getting external keys:
2262- *
2269+ *
22632270 * <pre>
22642271 * sort(x, sp.by(w*).get(k*))
22652272 * -> [x, y, z]
2266- *
2273+ *
22672274 * sort(x, sp.by(w*).get(#).get(k*))
22682275 * -> [3, x, 2, y, 1, z]
22692276 * </pre>
@@ -3198,7 +3205,7 @@ public String shutdown() {
31983205 * <b>Format of the returned String:</b>
31993206 * <p>
32003207 * All the fields are in the form field:value
3201- *
3208+ *
32023209 * <pre>
32033210 * edis_version:0.07
32043211 * connected_clients:1
@@ -3211,7 +3218,7 @@ public String shutdown() {
32113218 * uptime_in_seconds:25
32123219 * uptime_in_days:0
32133220 * </pre>
3214- *
3221+ *
32153222 * <b>Notes</b>
32163223 * <p>
32173224 * used_memory is returned in bytes, and is the total number of bytes allocated by the program
@@ -3293,7 +3300,7 @@ public String slaveofNoOne() {
32933300 * are reported as a list of key-value pairs.
32943301 * <p>
32953302 * <b>Example:</b>
3296- *
3303+ *
32973304 * <pre>
32983305 * $ redis-cli config get '*'
32993306 * 1. "dbfilename"
@@ -3308,7 +3315,7 @@ public String slaveofNoOne() {
33083315 * 10. "everysec"
33093316 * 11. "save"
33103317 * 12. "3600 1 300 100 60 10000"
3311- *
3318+ *
33123319 * $ redis-cli config get 'm*'
33133320 * 1. "masterauth"
33143321 * 2. (nil)
0 commit comments