Skip to content

Commit b631ea3

Browse files
authored
Spelling (#21)
some spelling fix Signed-off-by: Josh Soref <[email protected]>
1 parent cd6929e commit b631ea3

File tree

53 files changed

+224
-224
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+224
-224
lines changed

src/main/java/io/valkey/CommandObjects.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4376,7 +4376,7 @@ public final CommandObject<Object> tFunctionCallAsync(String library, String fun
43764376
// RedisGears commands
43774377

43784378
/**
4379-
* Get the instance for JsonObjectMapper if not null, otherwise a new instance reference with
4379+
* Get the instance for JsonObjectMapper if not null; otherwise, a new instance reference with
43804380
* default implementation will be created and returned.
43814381
* <p>This process of checking whether or not
43824382
* the instance reference exists follows <a

src/main/java/io/valkey/DefaultJedisSocketFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ private Socket connectToFirstSuccessfulHost(HostAndPort hostAndPort) throws Exce
6767

6868
socket.setReuseAddress(true);
6969
socket.setKeepAlive(true); // Will monitor the TCP connection is valid
70-
socket.setTcpNoDelay(true); // Socket buffer Whetherclosed, to ensure timely delivery of data
70+
socket.setTcpNoDelay(true); // Socket buffer option, to ensure timely delivery of data
7171
socket.setSoLinger(true, 0); // Control calls close () method, the underlying socket is closed immediately
7272

7373
// Passing 'host' directly will avoid another call to InetAddress.getByName() inside the InetSocketAddress constructor.

src/main/java/io/valkey/Jedis.java

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -627,11 +627,11 @@ public long exists(final byte[]... keys) {
627627
}
628628

629629
/**
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
631631
* returned. Note that even keys set with an empty string as value will return true. Time
632632
* complexity: O(1)
633633
* @param key
634-
* @return {@code true} if the key exists, otherwise {@code false}
634+
* @return {@code true} if the key exists; otherwise, {@code false}
635635
*/
636636
@Override
637637
public boolean exists(final byte[] key) {
@@ -1230,7 +1230,7 @@ public byte[] substr(final byte[] key, final int start, final int end) {
12301230
* @param field
12311231
* @param value
12321232
* @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.
12341234
*/
12351235
@Override
12361236
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) {
12661266
* @param key
12671267
* @param field
12681268
* @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
12701270
* returned.
12711271
*/
12721272
@Override
@@ -1363,12 +1363,12 @@ public boolean hexists(final byte[] key, final byte[] field) {
13631363
}
13641364

13651365
/**
1366-
* Remove the specified field from an hash stored at key.
1366+
* Remove the specified field from a hash stored at key.
13671367
* <p>
13681368
* <b>Time complexity:</b> O(1)
13691369
* @param key
13701370
* @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
13721372
* returned and no operation is performed.
13731373
*/
13741374
@Override
@@ -1643,8 +1643,8 @@ public String lset(final byte[] key, final long index, final byte[] value) {
16431643
* go from head to tail that is the normal behaviour. So for example LREM with count -2 and hello
16441644
* as value to remove against the list (a,b,c,hello,x,hello,hello) will leave the list
16451645
* (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.
16481648
* <p>
16491649
* Time complexity: O(N) (with N being the length of the list)
16501650
* @param key
@@ -1861,7 +1861,7 @@ public Set<byte[]> spop(final byte[] key, final long count) {
18611861
* for accessing clients.
18621862
* <p>
18631863
* 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
18651865
* to the destination set. On success one is returned, even if the element was already present in
18661866
* the destination set.
18671867
* <p>
@@ -1892,7 +1892,7 @@ public long scard(final byte[] key) {
18921892
}
18931893

18941894
/**
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.
18961896
* <p>
18971897
* Time complexity O(1)
18981898
* @param key
@@ -2137,7 +2137,7 @@ public List<byte[]> zrange(final byte[] key, final long start, final long stop)
21372137

21382138
/**
21392139
* 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
21412141
* returned.
21422142
* <p>
21432143
* Time complexity O(log(N)) with N being the number of elements in the sorted set
@@ -3518,15 +3518,15 @@ public String shutdownAbort() {
35183518
/**
35193519
* Provide information and statistics about the server.
35203520
* <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
35223522
* that's simple to parse by computers and easy to read by humans.
35233523
* <p>
35243524
* <b>Format of the returned String:</b>
35253525
* <p>
35263526
* All the fields are in the form field:value
35273527
*
35283528
* <pre>
3529-
* edis_version:0.07
3529+
* redis_version:0.07
35303530
* connected_clients:1
35313531
* connected_slaves:0
35323532
* used_memory:3187
@@ -5089,11 +5089,11 @@ public long exists(final String... keys) {
50895089
}
50905090

50915091
/**
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
50935093
* returned. Note that even keys set with an empty string as value will return true. Time
50945094
* complexity: O(1)
50955095
* @param key
5096-
* @return {@code true} if the key exists, otherwise {@code false}
5096+
* @return {@code true} if the key exists; otherwise, {@code false}
50975097
*/
50985098
@Override
50995099
public boolean exists(final String key) {
@@ -5527,7 +5527,7 @@ public long msetnx(final String... keysvalues) {
55275527
}
55285528

55295529
/**
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
55315531
* decrement is integer.
55325532
* <p>
55335533
* 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) {
56915691
* @param field
56925692
* @param value
56935693
* @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.
56955695
*/
56965696
@Override
56975697
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) {
57275727
* @param key
57285728
* @param field
57295729
* @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
57315731
* returned.
57325732
*/
57335733
@Override
@@ -6108,8 +6108,8 @@ public String lset(final String key, final long index, final String value) {
61086108
* go from head to tail that is the normal behaviour. So for example LREM with count -2 and hello
61096109
* as value to remove against the list (a,b,c,hello,x,hello,hello) will leave the list
61106110
* (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.
61136113
* <p>
61146114
* Time complexity: O(N) (with N being the length of the list)
61156115
* @param key
@@ -6281,7 +6281,7 @@ public Set<String> spop(final String key, final long count) {
62816281
* for accessing clients.
62826282
* <p>
62836283
* 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
62856285
* to the destination set. On success one is returned, even if the element was already present in
62866286
* the destination set.
62876287
* <p>
@@ -6313,7 +6313,7 @@ public long scard(final String key) {
63136313
}
63146314

63156315
/**
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.
63176317
* <p>
63186318
* Time complexity O(1)
63196319
* @param key

src/main/java/io/valkey/JedisClusterInfoCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public JedisClusterInfoCache(final JedisClientConfig clientConfig,
8888
/**
8989
* Check whether the number and order of slots in the cluster topology are equal to CLUSTER_HASHSLOTS
9090
* @param slotsInfo the cluster topology
91-
* @return if slots is ok, return true, elese return false.
91+
* @return if slots is ok, return true, else return false.
9292
*/
9393
private boolean checkClusterSlotSequence(List<Object> slotsInfo) {
9494
List<Integer> slots = new ArrayList<>();

src/main/java/io/valkey/JedisSentinelPool.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ private HostAndPort initSentinels(Set<HostAndPort> sentinels, final String maste
245245
sentinelAvailable = true;
246246

247247
if (masterAddr == null || masterAddr.size() != 2) {
248-
LOG.warn("Can not get master addr, master name: {}. Sentinel: {}", masterName, sentinel);
248+
LOG.warn("Cannot get master addr, master name: {}. Sentinel: {}", masterName, sentinel);
249249
continue;
250250
}
251251

@@ -368,7 +368,7 @@ public void run() {
368368
// code for active refresh
369369
List<String> masterAddr = j.sentinelGetMasterAddrByName(masterName);
370370
if (masterAddr == null || masterAddr.size() != 2) {
371-
LOG.warn("Can not get master addr, master name: {}. Sentinel: {}.", masterName,
371+
LOG.warn("Cannot get master addr, master name: {}. Sentinel: {}.", masterName,
372372
hostPort);
373373
} else {
374374
initMaster(toHostAndPort(masterAddr));

src/main/java/io/valkey/MultiClusterClientConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* With this Config users can seamlessly failover to Disaster Recovery (DR), Backup, and Active-Active cluster(s)
2222
* by using simple configuration which is passed through from Resilience4j - https://resilience4j.readme.io/docs
2323
* <p>
24-
* Configuration options related to automatic failback (e.g. HALF_OPENED state) are not supported and therefore
24+
* Configuration options related to automatic fallback (e.g. HALF_OPENED state) are not supported and therefore
2525
* not passed through to Jedis users.
2626
* <p>
2727
*/

src/main/java/io/valkey/bloom/commands/TDigestSketchCommands.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ public interface TDigestSketchCommands {
107107
* {@code TDIGEST.TRIMMED_MEAN key low_cut_quantile high_cut_quantile}
108108
*
109109
* @param key The name of the sketch (a t-digest data structure)
110-
* @param lowCutQuantile Exclude observation values lower than this quantile
111-
* @param highCutQuantile Exclude observation values higher than this quantile
110+
* @param lowCutQuantile Exclude observation values below this quantile
111+
* @param highCutQuantile Exclude observation values above this quantile
112112
* @return estimation of the mean value
113113
*/
114114
double tdigestTrimmedMean(String key, double lowCutQuantile, double highCutQuantile);

src/main/java/io/valkey/commands/ClientCommands.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
/**
1111
* The interface contain all the commands about client.
12-
* The params is String encoded in uft-8
12+
* The params is String encoded in utf-8
1313
*/
1414
public interface ClientCommands {
1515

src/main/java/io/valkey/commands/ClusterCommands.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public interface ClusterCommands {
117117
* attributes and their values for an individual link.
118118
*
119119
* @return the information of all such peer links as an array
120-
* @see <a href="https://valkey.io/commands/cluster-links">CLUSTET LINKS</a>
120+
* @see <a href="https://valkey.io/commands/cluster-links">CLUSTER LINKS</a>
121121
*/
122122
List<Map<String, Object>> clusterLinks();
123123

src/main/java/io/valkey/commands/KeyCommands.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public interface KeyCommands {
7474
* Time complexity: O(1) to access the key and additional O(N*M) to serialize it where N is
7575
* the number of Redis objects composing the value and M their average size.
7676
* @param key
77-
* @param ttl If ttl is 0 the key is created without any expire, otherwise the specified expire
77+
* @param ttl If ttl is 0 the key is created without any expire; otherwise, the specified expire
7878
* time (in milliseconds) is set.
7979
* @param serializedValue
8080
* @return OK
@@ -89,7 +89,7 @@ public interface KeyCommands {
8989
* Time complexity: O(1) to access the key and additional O(N*M) to serialize it where N is
9090
* the number of Redis objects composing the value and M their average size.
9191
* @param key
92-
* @param ttl If ttl is 0 the key is created without any expire, otherwise the specified expire
92+
* @param ttl If ttl is 0 the key is created without any expire; otherwise, the specified expire
9393
* time (in milliseconds) is set.
9494
* @param serializedValue
9595
* @param params {@link RestoreParams}

0 commit comments

Comments
 (0)