@@ -627,11 +627,11 @@ public long exists(final byte[]... keys) {
627
627
}
628
628
629
629
/**
630
- * Test if the specified key exists. The command returns true if the key exists, otherwise false is
630
+ * Test if the specified key exists. The command returns true if the key exists; otherwise, false is
631
631
* returned. Note that even keys set with an empty string as value will return true. Time
632
632
* complexity: O(1)
633
633
* @param key
634
- * @return {@code true} if the key exists, otherwise {@code false}
634
+ * @return {@code true} if the key exists; otherwise, {@code false}
635
635
*/
636
636
@ Override
637
637
public boolean exists (final byte [] key ) {
@@ -1230,7 +1230,7 @@ public byte[] substr(final byte[] key, final int start, final int end) {
1230
1230
* @param field
1231
1231
* @param value
1232
1232
* @return If the field already exists, and the HSET just produced an update of the value, 0 is
1233
- * returned, otherwise if a new field is created 1 is returned.
1233
+ * returned; otherwise, if a new field is created 1 is returned.
1234
1234
*/
1235
1235
@ Override
1236
1236
public long hset (final byte [] key , final byte [] field , final byte [] value ) {
@@ -1266,7 +1266,7 @@ public byte[] hget(final byte[] key, final byte[] field) {
1266
1266
* @param key
1267
1267
* @param field
1268
1268
* @param value
1269
- * @return If the field already exists, 0 is returned, otherwise if a new field is created 1 is
1269
+ * @return If the field already exists, 0 is returned; otherwise, if a new field is created 1 is
1270
1270
* returned.
1271
1271
*/
1272
1272
@ Override
@@ -1363,12 +1363,12 @@ public boolean hexists(final byte[] key, final byte[] field) {
1363
1363
}
1364
1364
1365
1365
/**
1366
- * Remove the specified field from an hash stored at key.
1366
+ * Remove the specified field from a hash stored at key.
1367
1367
* <p>
1368
1368
* <b>Time complexity:</b> O(1)
1369
1369
* @param key
1370
1370
* @param fields
1371
- * @return If the field was present in the hash it is deleted and 1 is returned, otherwise 0 is
1371
+ * @return If the field was present in the hash it is deleted and 1 is returned; otherwise, 0 is
1372
1372
* returned and no operation is performed.
1373
1373
*/
1374
1374
@ Override
@@ -1643,8 +1643,8 @@ public String lset(final byte[] key, final long index, final byte[] value) {
1643
1643
* go from head to tail that is the normal behaviour. So for example LREM with count -2 and hello
1644
1644
* as value to remove against the list (a,b,c,hello,x,hello,hello) will leave the list
1645
1645
* (a,b,c,hello,x). The number of removed elements is returned as an integer, see below for more
1646
- * information about the returned value. Note that non existing keys are considered like empty
1647
- * lists by LREM, so LREM against non existing keys will always return 0.
1646
+ * information about the returned value. Note that nonexistent keys are considered like empty
1647
+ * lists by LREM, so LREM against nonexistent keys will always return 0.
1648
1648
* <p>
1649
1649
* Time complexity: O(N) (with N being the length of the list)
1650
1650
* @param key
@@ -1861,7 +1861,7 @@ public Set<byte[]> spop(final byte[] key, final long count) {
1861
1861
* for accessing clients.
1862
1862
* <p>
1863
1863
* If the source set does not exist or does not contain the specified element no operation is
1864
- * performed and zero is returned, otherwise the element is removed from the source set and added
1864
+ * performed and zero is returned; otherwise, the element is removed from the source set and added
1865
1865
* to the destination set. On success one is returned, even if the element was already present in
1866
1866
* the destination set.
1867
1867
* <p>
@@ -1892,7 +1892,7 @@ public long scard(final byte[] key) {
1892
1892
}
1893
1893
1894
1894
/**
1895
- * Return true if member is a member of the set stored at key, otherwise false is returned.
1895
+ * Return true if member is a member of the set stored at key; otherwise, false is returned.
1896
1896
* <p>
1897
1897
* Time complexity O(1)
1898
1898
* @param key
@@ -2137,7 +2137,7 @@ public List<byte[]> zrange(final byte[] key, final long start, final long stop)
2137
2137
2138
2138
/**
2139
2139
* Remove the specified member from the sorted set value stored at key. If member was not a member
2140
- * of the set no operation is performed. If key does not not hold a set value an error is
2140
+ * of the set no operation is performed. If key does not hold a set value an error is
2141
2141
* returned.
2142
2142
* <p>
2143
2143
* Time complexity O(log(N)) with N being the number of elements in the sorted set
@@ -3518,15 +3518,15 @@ public String shutdownAbort() {
3518
3518
/**
3519
3519
* Provide information and statistics about the server.
3520
3520
* <p>
3521
- * The info command returns different information and statistics about the server in an format
3521
+ * The info command returns different information and statistics about the server in a format
3522
3522
* that's simple to parse by computers and easy to read by humans.
3523
3523
* <p>
3524
3524
* <b>Format of the returned String:</b>
3525
3525
* <p>
3526
3526
* All the fields are in the form field:value
3527
3527
*
3528
3528
* <pre>
3529
- * edis_version :0.07
3529
+ * redis_version :0.07
3530
3530
* connected_clients:1
3531
3531
* connected_slaves:0
3532
3532
* used_memory:3187
@@ -5089,11 +5089,11 @@ public long exists(final String... keys) {
5089
5089
}
5090
5090
5091
5091
/**
5092
- * Test if the specified key exists. The command returns true if the key exists, otherwise false is
5092
+ * Test if the specified key exists. The command returns true if the key exists; otherwise, false is
5093
5093
* returned. Note that even keys set with an empty string as value will return true. Time
5094
5094
* complexity: O(1)
5095
5095
* @param key
5096
- * @return {@code true} if the key exists, otherwise {@code false}
5096
+ * @return {@code true} if the key exists; otherwise, {@code false}
5097
5097
*/
5098
5098
@ Override
5099
5099
public boolean exists (final String key ) {
@@ -5527,7 +5527,7 @@ public long msetnx(final String... keysvalues) {
5527
5527
}
5528
5528
5529
5529
/**
5530
- * IDECRBY work just like {@link Jedis#decr(String) INCR} but instead to decrement by 1 the
5530
+ * DECRBY works just like {@link Jedis#decr(String) INCR} but instead to decrement by 1 the
5531
5531
* decrement is integer.
5532
5532
* <p>
5533
5533
* INCR commands are limited to 64-bit signed integers.
@@ -5691,7 +5691,7 @@ public String substr(final String key, final int start, final int end) {
5691
5691
* @param field
5692
5692
* @param value
5693
5693
* @return If the field already exists, and the HSET just produced an update of the value, 0 is
5694
- * returned, otherwise if a new field is created 1 is returned.
5694
+ * returned; otherwise, if a new field is created 1 is returned.
5695
5695
*/
5696
5696
@ Override
5697
5697
public long hset (final String key , final String field , final String value ) {
@@ -5727,7 +5727,7 @@ public String hget(final String key, final String field) {
5727
5727
* @param key
5728
5728
* @param field
5729
5729
* @param value
5730
- * @return If the field already exists, 0 is returned, otherwise if a new field is created 1 is
5730
+ * @return If the field already exists, 0 is returned; otherwise, if a new field is created 1 is
5731
5731
* returned.
5732
5732
*/
5733
5733
@ Override
@@ -6108,8 +6108,8 @@ public String lset(final String key, final long index, final String value) {
6108
6108
* go from head to tail that is the normal behaviour. So for example LREM with count -2 and hello
6109
6109
* as value to remove against the list (a,b,c,hello,x,hello,hello) will leave the list
6110
6110
* (a,b,c,hello,x). The number of removed elements is returned as an integer, see below for more
6111
- * information about the returned value. Note that non existing keys are considered like empty
6112
- * lists by LREM, so LREM against non existing keys will always return 0.
6111
+ * information about the returned value. Note that nonexistent keys are considered like empty
6112
+ * lists by LREM, so LREM against nonexistent keys will always return 0.
6113
6113
* <p>
6114
6114
* Time complexity: O(N) (with N being the length of the list)
6115
6115
* @param key
@@ -6281,7 +6281,7 @@ public Set<String> spop(final String key, final long count) {
6281
6281
* for accessing clients.
6282
6282
* <p>
6283
6283
* If the source set does not exist or does not contain the specified element no operation is
6284
- * performed and zero is returned, otherwise the element is removed from the source set and added
6284
+ * performed and zero is returned; otherwise, the element is removed from the source set and added
6285
6285
* to the destination set. On success one is returned, even if the element was already present in
6286
6286
* the destination set.
6287
6287
* <p>
@@ -6313,7 +6313,7 @@ public long scard(final String key) {
6313
6313
}
6314
6314
6315
6315
/**
6316
- * Return true if member is a member of the set stored at key, otherwise false is returned.
6316
+ * Return true if member is a member of the set stored at key; otherwise, false is returned.
6317
6317
* <p>
6318
6318
* Time complexity O(1)
6319
6319
* @param key
0 commit comments