Skip to content

Commit c0b8ac0

Browse files
gkorlandmarcosnils
authored andcommitted
Few typo fixes (#1827)
* Few typo fixes * Fix more typos * replace leave with have
1 parent d054adb commit c0b8ac0

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

src/main/java/redis/clients/jedis/BinaryJedis.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ public Long dbSize() {
453453
* Set a timeout on the specified key. After the timeout the key will be automatically deleted by
454454
* the server. A key with an associated timeout is said to be volatile in Redis terminology.
455455
* <p>
456-
* Voltile keys are stored on disk like the other keys, the timeout is persistent too like all the
456+
* Volatile keys are stored on disk like the other keys, the timeout is persistent too like all the
457457
* other aspects of the dataset. Saving a dataset containing expires and stopping the server does
458458
* not stop the flow of time as Redis stores on disk the time when the key will no longer be
459459
* available as Unix time, and not the remaining seconds.
@@ -478,9 +478,9 @@ public Long expire(final byte[] key, final int seconds) {
478478
}
479479

480480
/**
481-
* EXPIREAT works exctly like {@link #expire(byte[], int) EXPIRE} but instead to get the number of
481+
* EXPIREAT works exactly like {@link #expire(byte[], int) EXPIRE} but instead to get the number of
482482
* seconds representing the Time To Live of the key as a second argument (that is a relative way
483-
* of specifing the TTL), it takes an absolute one in the form of a UNIX timestamp (Number of
483+
* of specifying the TTL), it takes an absolute one in the form of a UNIX timestamp (Number of
484484
* seconds elapsed since 1 Gen 1970).
485485
* <p>
486486
* EXPIREAT was introduced in order to implement the Append Only File persistence mode so that
@@ -1293,7 +1293,7 @@ public String lset(final byte[] key, final long index, final byte[] value) {
12931293
* Remove the first count occurrences of the value element from the list. If count is zero all the
12941294
* elements are removed. If count is negative elements are removed from tail to head, instead to
12951295
* go from head to tail that is the normal behaviour. So for example LREM with count -2 and hello
1296-
* as value to remove against the list (a,b,c,hello,x,hello,hello) will have the list
1296+
* as value to remove against the list (a,b,c,hello,x,hello,hello) will leave the list
12971297
* (a,b,c,hello,x). The number of removed elements is returned as an integer, see below for more
12981298
* information about the returned value. Note that non existing keys are considered like empty
12991299
* lists by LREM, so LREM against non existing keys will always return 0.
@@ -1353,7 +1353,7 @@ public byte[] rpop(final byte[] key) {
13531353
* <p>
13541354
* If the key does not exist or the list is already empty the special value 'nil' is returned. If
13551355
* the srckey and dstkey are the same the operation is equivalent to removing the last element
1356-
* from the list and pusing it as first element of the list, so it's a "list rotation" command.
1356+
* from the list and pushing it as first element of the list, so it's a "list rotation" command.
13571357
* <p>
13581358
* Time complexity: O(1)
13591359
* @param srckey
@@ -1521,8 +1521,8 @@ public Set<byte[]> sinter(final byte[]... keys) {
15211521
}
15221522

15231523
/**
1524-
* This commnad works exactly like {@link #sinter(byte[]...) SINTER} but instead of being returned
1525-
* the resulting set is sotred as dstkey.
1524+
* This commanad works exactly like {@link #sinter(byte[]...) SINTER} but instead of being returned
1525+
* the resulting set is stored as dstkey.
15261526
* <p>
15271527
* Time complexity O(N*M) worst case where N is the cardinality of the smallest set and M the
15281528
* number of sets
@@ -1639,10 +1639,10 @@ public List<byte[]> srandmember(final byte[] key, final int count) {
16391639
}
16401640

16411641
/**
1642-
* Add the specified member having the specifeid score to the sorted set stored at key. If member
1642+
* Add the specified member having the specified score to the sorted set stored at key. If member
16431643
* is already a member of the sorted set the score is updated, and the element reinserted in the
16441644
* right position to ensure sorting. If key does not exist a new sorted set with the specified
1645-
* member as sole member is crated. If the key exists but does not hold a sorted set value an
1645+
* member as sole member is created. If the key exists but does not hold a sorted set value an
16461646
* error is returned.
16471647
* <p>
16481648
* The score value can be the string representation of a double precision floating point number.
@@ -1712,7 +1712,7 @@ public Long zrem(final byte[] key, final byte[]... members) {
17121712
* position of the element in the sorted set accordingly. If member does not already exist in the
17131713
* sorted set it is added with increment as score (that is, like if the previous score was
17141714
* virtually zero). If key does not exist a new sorted set with the specified member as sole
1715-
* member is crated. If the key exists but does not hold a sorted set value an error is returned.
1715+
* member is created. If the key exists but does not hold a sorted set value an error is returned.
17161716
* <p>
17171717
* The score value can be the string representation of a double precision floating point number.
17181718
* It's possible to provide a negative value to perform a decrement.
@@ -2952,12 +2952,12 @@ public void monitor(final JedisMonitor jedisMonitor) {
29522952
* Change the replication settings.
29532953
* <p>
29542954
* The SLAVEOF command can change the replication settings of a slave on the fly. If a Redis
2955-
* server is arleady acting as slave, the command SLAVEOF NO ONE will turn off the replicaiton
2955+
* server is already acting as slave, the command SLAVEOF NO ONE will turn off the replication
29562956
* turning the Redis server into a MASTER. In the proper form SLAVEOF hostname port will make the
29572957
* server a slave of the specific server listening at the specified hostname and port.
29582958
* <p>
29592959
* If a server is already a slave of some master, SLAVEOF hostname port will stop the replication
2960-
* against the old server and start the synchrnonization against the new one discarding the old
2960+
* against the old server and start the synchronization against the new one discarding the old
29612961
* dataset.
29622962
* <p>
29632963
* The form SLAVEOF no one will stop replication turning the server into a MASTER but will not
@@ -3076,7 +3076,7 @@ public String configRewrite() {
30763076
* Redis configuration file, with the following exceptions:
30773077
* <p>
30783078
* <ul>
3079-
* <li>The save paramter is a list of space-separated integers. Every pair of integers specify the
3079+
* <li>The save parameter is a list of space-separated integers. Every pair of integers specify the
30803080
* time and number of changes limit to trigger a save. For instance the command CONFIG SET save
30813081
* "3600 10 60 10000" will configure the server to issue a background saving of the RDB file every
30823082
* 3600 seconds if there are at least 10 changes in the dataset, and every 60 seconds if there are
@@ -3456,7 +3456,7 @@ public String restoreReplace(final byte[] key, final int ttl, final byte[] seria
34563456
* Set a timeout on the specified key. After the timeout the key will be automatically deleted by
34573457
* the server. A key with an associated timeout is said to be volatile in Redis terminology.
34583458
* <p>
3459-
* Voltile keys are stored on disk like the other keys, the timeout is persistent too like all the
3459+
* Volatile keys are stored on disk like the other keys, the timeout is persistent too like all the
34603460
* other aspects of the dataset. Saving a dataset containing expires and stopping the server does
34613461
* not stop the flow of time as Redis stores on disk the time when the key will no longer be
34623462
* available as Unix time, and not the remaining milliseconds.

src/main/java/redis/clients/jedis/Jedis.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ public Long renamenx(final String oldkey, final String newkey) {
326326
* Set a timeout on the specified key. After the timeout the key will be automatically deleted by
327327
* the server. A key with an associated timeout is said to be volatile in Redis terminology.
328328
* <p>
329-
* Voltile keys are stored on disk like the other keys, the timeout is persistent too like all the
329+
* Volatile keys are stored on disk like the other keys, the timeout is persistent too like all the
330330
* other aspects of the dataset. Saving a dataset containing expires and stopping the server does
331331
* not stop the flow of time as Redis stores on disk the time when the key will no longer be
332332
* available as Unix time, and not the remaining seconds.
@@ -351,9 +351,9 @@ public Long expire(final String key, final int seconds) {
351351
}
352352

353353
/**
354-
* EXPIREAT works exctly like {@link #expire(String, int) EXPIRE} but instead to get the number of
354+
* EXPIREAT works exactly like {@link #expire(String, int) EXPIRE} but instead to get the number of
355355
* seconds representing the Time To Live of the key as a second argument (that is a relative way
356-
* of specifing the TTL), it takes an absolute one in the form of a UNIX timestamp (Number of
356+
* of specifying the TTL), it takes an absolute one in the form of a UNIX timestamp (Number of
357357
* seconds elapsed since 1 Gen 1970).
358358
* <p>
359359
* EXPIREAT was introduced in order to implement the Append Only File persistence mode so that
@@ -1120,7 +1120,7 @@ public String lset(final String key, final long index, final String value) {
11201120
* Remove the first count occurrences of the value element from the list. If count is zero all the
11211121
* elements are removed. If count is negative elements are removed from tail to head, instead to
11221122
* go from head to tail that is the normal behaviour. So for example LREM with count -2 and hello
1123-
* as value to remove against the list (a,b,c,hello,x,hello,hello) will lave the list
1123+
* as value to remove against the list (a,b,c,hello,x,hello,hello) will leave the list
11241124
* (a,b,c,hello,x). The number of removed elements is returned as an integer, see below for more
11251125
* information about the returned value. Note that non existing keys are considered like empty
11261126
* lists by LREM, so LREM against non existing keys will always return 0.
@@ -1180,7 +1180,7 @@ public String rpop(final String key) {
11801180
* <p>
11811181
* If the key does not exist or the list is already empty the special value 'nil' is returned. If
11821182
* the srckey and dstkey are the same the operation is equivalent to removing the last element
1183-
* from the list and pusing it as first element of the list, so it's a "list rotation" command.
1183+
* from the list and pushing it as first element of the list, so it's a "list rotation" command.
11841184
* <p>
11851185
* Time complexity: O(1)
11861186
* @param srckey
@@ -1272,7 +1272,7 @@ public Set<String> spop(final String key, final long count) {
12721272
}
12731273

12741274
/**
1275-
* Move the specifided member from the set at srckey to the set at dstkey. This operation is
1275+
* Move the specified member from the set at srckey to the set at dstkey. This operation is
12761276
* atomic, in every given moment the element will appear to be in the source or destination set
12771277
* for accessing clients.
12781278
* <p>
@@ -1351,8 +1351,8 @@ public Set<String> sinter(final String... keys) {
13511351
}
13521352

13531353
/**
1354-
* This commnad works exactly like {@link #sinter(String...) SINTER} but instead of being returned
1355-
* the resulting set is sotred as dstkey.
1354+
* This command works exactly like {@link #sinter(String...) SINTER} but instead of being returned
1355+
* the resulting set is stored as dstkey.
13561356
* <p>
13571357
* Time complexity O(N*M) worst case where N is the cardinality of the smallest set and M the
13581358
* number of sets
@@ -1470,10 +1470,10 @@ public List<String> srandmember(final String key, final int count) {
14701470
}
14711471

14721472
/**
1473-
* Add the specified member having the specifeid score to the sorted set stored at key. If member
1473+
* Add the specified member having the specified score to the sorted set stored at key. If member
14741474
* is already a member of the sorted set the score is updated, and the element reinserted in the
14751475
* right position to ensure sorting. If key does not exist a new sorted set with the specified
1476-
* member as sole member is crated. If the key exists but does not hold a sorted set value an
1476+
* member as sole member is created. If the key exists but does not hold a sorted set value an
14771477
* error is returned.
14781478
* <p>
14791479
* The score value can be the string representation of a double precision floating point number.
@@ -1545,7 +1545,7 @@ public Long zrem(final String key, final String... members) {
15451545
* position of the element in the sorted set accordingly. If member does not already exist in the
15461546
* sorted set it is added with increment as score (that is, like if the previous score was
15471547
* virtually zero). If key does not exist a new sorted set with the specified member as sole
1548-
* member is crated. If the key exists but does not hold a sorted set value an error is returned.
1548+
* member is created. If the key exists but does not hold a sorted set value an error is returned.
15491549
* <p>
15501550
* The score value can be the string representation of a double precision floating point number.
15511551
* It's possible to provide a negative value to perform a decrement.
@@ -2741,7 +2741,7 @@ public List<String> configGet(final String pattern) {
27412741
* Redis configuration file, with the following exceptions:
27422742
* <p>
27432743
* <ul>
2744-
* <li>The save paramter is a list of space-separated integers. Every pair of integers specify the
2744+
* <li>The save parameter is a list of space-separated integers. Every pair of integers specify the
27452745
* time and number of changes limit to trigger a save. For instance the command CONFIG SET save
27462746
* "3600 10 60 10000" will configure the server to issue a background saving of the RDB file every
27472747
* 3600 seconds if there are at least 10 changes in the dataset, and every 60 seconds if there are

0 commit comments

Comments
 (0)