fix(deps): update dependency redis.clients:jedis to v4 (#6737)
fix(deps): update dependency redis.clients:jedis to v4 (#6737)

[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [redis.clients:jedis](https://togithub.com/redis/jedis) | `3.7.0` -> `4.1.1` | [![age](https://badges.renovateapi.com/packages/maven/redis.clients:jedis/4.1.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/redis.clients:jedis/4.1.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/redis.clients:jedis/4.1.1/compatibility-slim/3.7.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/redis.clients:jedis/4.1.1/confidence-slim/3.7.0)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>redis/jedis</summary>

### [`v4.1.1`](https://togithub.com/redis/jedis/releases/v4.1.1)

[Compare Source](https://togithub.com/redis/jedis/compare/v4.1.0...v4.1.1)

#### 🐛 Bug Fixes

-   Fixed the problem of abnormal socket status during DNS resolution ([#&#8203;2849](https://togithub.com/redis/jedis/issues/2849))

#### 🧰 Maintenance

-   Fix typo in method name connectToFirstSuccsefulHost ([#&#8203;2853](https://togithub.com/redis/jedis/issues/2853))

#### Contributors

We'd like to thank all the contributors who worked on this release!

Thanks [@&#8203;leonchen83](https://togithub.com/leonchen83), [@&#8203;yangbodong22011](https://togithub.com/yangbodong22011), [@&#8203;andrewmcnamara](https://togithub.com/andrewmcnamara) for contributing.

### [`v4.1.0`](https://togithub.com/redis/jedis/releases/v4.1.0)

[Compare Source](https://togithub.com/redis/jedis/compare/v4.0.1...v4.1.0)

#### 🚀 New Features

Support GEOSEARCH and GEOSEARCHSTORE commands ([#&#8203;2771](https://togithub.com/redis/jedis/issues/2771))
Support new ZRANGE(STORE) ([#&#8203;2817](https://togithub.com/redis/jedis/issues/2817))
Add database and some other commands in pipeline ([#&#8203;2832](https://togithub.com/redis/jedis/issues/2832))
Subscribe in JedisCluster (UnifiedJedis) ([#&#8203;2828](https://togithub.com/redis/jedis/issues/2828))
Support cluster addslotsrange and cluster delslotsrange ([#&#8203;2823](https://togithub.com/redis/jedis/issues/2823))
Support exclusive XPENDING range from params ([#&#8203;2830](https://togithub.com/redis/jedis/issues/2830))
Support CLUSTER LINKS command ([#&#8203;2776](https://togithub.com/redis/jedis/issues/2776))
Added the BYTE|BIT option for bitcount (binary) ([#&#8203;2768](https://togithub.com/redis/jedis/issues/2768))
Added the BYTE|BIT option for bitcount (string) ([#&#8203;2779](https://togithub.com/redis/jedis/issues/2779))
Support SHUTDOWN \[NOW] \[FORCE] \[ABORT] parameters ([#&#8203;2812](https://togithub.com/redis/jedis/issues/2812))
Support XINFO STREAM FULL ([#&#8203;2746](https://togithub.com/redis/jedis/issues/2746))
ACL patterns for Pub/Sub channels ([#&#8203;2750](https://togithub.com/redis/jedis/issues/2750))
Address ACL V2 changes ([#&#8203;2841](https://togithub.com/redis/jedis/issues/2841))
Support REPLICAOF Command ([#&#8203;2811](https://togithub.com/redis/jedis/issues/2811))
Support LOLWUT command ([#&#8203;2800](https://togithub.com/redis/jedis/issues/2800))
Support SINTERCARD Command ([#&#8203;2821](https://togithub.com/redis/jedis/issues/2821))
Support SORT_RO ([#&#8203;2843](https://togithub.com/redis/jedis/issues/2843))
Address XINFO GROUPS command name ([#&#8203;2802](https://togithub.com/redis/jedis/issues/2802))

#### 🧰 Changes

Tries all hosts resolved for DNS name ([#&#8203;2722](https://togithub.com/redis/jedis/issues/2722))
Fix StackOverflowError in Transaction ([#&#8203;2827](https://togithub.com/redis/jedis/issues/2827))
Polish XINFO STREAM FULL implementation ([#&#8203;2801](https://togithub.com/redis/jedis/issues/2801))
Polish [#&#8203;2823](https://togithub.com/redis/jedis/issues/2823) ([`18043de`](https://togithub.com/redis/jedis/commit/18043de)) and ClusterCommandsTest ([#&#8203;2831](https://togithub.com/redis/jedis/issues/2831))
Deprecate unused interfaces ([`afcce7c`](https://togithub.com/redis/jedis/commit/afcce7c))

Thanks [@&#8203;AvitalFineRedis](https://togithub.com/AvitalFineRedis), [@&#8203;zeekling](https://togithub.com/zeekling), [@&#8203;sazzad16](https://togithub.com/sazzad16), [@&#8203;adiamzn](https://togithub.com/adiamzn), [@&#8203;Avital-Fine](https://togithub.com/Avital-Fine) for contributing.

### [`v4.0.1`](https://togithub.com/redis/jedis/releases/v4.0.1)

[Compare Source](https://togithub.com/redis/jedis/compare/v4.0.0...v4.0.1)

#### 🐛 Bug Fixes

-   Fix the zrevrangeByScore max/min parameter order problem in the transaction ([#&#8203;2765](https://togithub.com/redis/jedis/issues/2765))

#### 🧰 Maintenance

-   Add RediSearch Pipeline Commands ([#&#8203;2770](https://togithub.com/redis/jedis/issues/2770))

#### Contributors

We'd like to thank all the contributors who worked on this release!

[@&#8203;leonchen83](https://togithub.com/leonchen83), [@&#8203;yangbodong22011](https://togithub.com/yangbodong22011), [@&#8203;AvitalFineRedis](https://togithub.com/AvitalFineRedis).

### [`v4.0.0`](https://togithub.com/redis/jedis/releases/v4.0.0)

[Compare Source](https://togithub.com/redis/jedis/compare/v3.8.0...v4.0.0)

#### 🚀 New Features

-   Introduced JedisPooled
    An alternative to JedisPool which implements the same interfaces as JedisCluster, allowing easy switching between JedisCluster and JedisPooled.
-   Introduced JedisSharding
-   Introduced ClusterPipeline and ShardedPipeline
-   Introduced ReliableTransaction
-   Introduced UnifiedJedis
    UnifiedJedis can be anything depending on the `ConnectionProvider` or `CommandExecutor`. Currently, this is the base for JedisCluster, JedisPooled and JedisSharding.
-   Introduced ConnectionProvider interface and few implementations
-   Introduced CommandExecutor interface and few implementations
-   Added RedisJSON and RedisJSON 2 [commands](https://oss.redis.com/redisjson/commands/)
-   Added RediSearch [commands](https://oss.redis.com/redisearch/Commands/)
-   Support exclusive range in XRANGE command ([#&#8203;2719](https://togithub.com/redis/jedis/issues/2719))
-   Added ACL DELUSER and ACL GENPASS with bits option ([#&#8203;2697](https://togithub.com/redis/jedis/issues/2697))

#### 🔥 Breaking Changes ([see all](https://togithub.com/redis/jedis/blob/v4.0.0/docs/3to4.md))

-   JedisCluster constructors with `GenericObjectPoolConfig<Jedis>` now accept `GenericObjectPoolConfig<Connection>`.
-   Most SortedSet methods are changed to return Java `List` instead of `Set` ([#&#8203;2709](https://togithub.com/redis/jedis/issues/2709)) [See Full List](https://togithub.com/redis/jedis/blob/v4.0.0/docs/3to4-zset-list.md)
-   Many methods now return primitive values (long/boolean/double instead of Long/Boolean/Double) [See Full List](https://togithub.com/redis/jedis/blob/v4.0.0/docs/3to4-primitives.md)
-   ShardedJedisPool, Sharded, ShardedJedis, BinaryShardedJedis, ShardInfo, JedisShardInfo classes are removed.
-   BinaryJedis and BinaryJedisCluster classes are removed.
    Methods of these classes are available in Jedis and JedisCluster classes respectively.
-   Client and BinaryClient classes are removed.
-   `redis.clients.jedis.commands` package is reimplemented, meaning Commands interfaces are restructured.
-   Removed Sentinel class ([#&#8203;2744](https://togithub.com/redis/jedis/issues/2744)) (since 4.0.0-rc2)
    Sentinel methods are moved in Jedis class (just like Jedis 3.x)

#### 🧰 Maintenance

-   Upgraded dependency `org.slf4j:slf4j-api` to version `1.7.32`
-   Added dependency `org.json:json` version `20211205`
-   Added dependency `com.google.code.gson:gson` version `2.8.9`

#### 🚃 Change List

-   Throw IllegalStateException by replacing invalid JedisDataException ([#&#8203;2393](https://togithub.com/redis/jedis/issues/2393))
-   Support Sentinel with TLS ([#&#8203;2403](https://togithub.com/redis/jedis/issues/2403))
-   Remove usage of infinite timeout from EVAL and EVALSHA commands ([#&#8203;2408](https://togithub.com/redis/jedis/issues/2408))
-   Avoid NullPointException from SetFromList class ([#&#8203;2454](https://togithub.com/redis/jedis/issues/2454))
-   JedisNoReachableClusterNodeException should extend JedisClusterOperationException ([#&#8203;2409](https://togithub.com/redis/jedis/issues/2409))
-   Remove WATCH from Transaction ([#&#8203;2033](https://togithub.com/redis/jedis/issues/2033))
-   JedisDataException should not be wrapped within Pool operations ([#&#8203;2501](https://togithub.com/redis/jedis/issues/2501))
-   Remove SYNC command ([#&#8203;2499](https://togithub.com/redis/jedis/issues/2499))
-   Remove ShardedJedisPipeline class ([#&#8203;2500](https://togithub.com/redis/jedis/issues/2500))
-   Remove JedisPoolAbstract class and hide Pool.initPool() method ([#&#8203;1734](https://togithub.com/redis/jedis/issues/1734))
-   Limit the access of setDataSource in Jedis ([#&#8203;2516](https://togithub.com/redis/jedis/issues/2516))
-   Make `raw` variable private and should be accessed via getRaw() method ([#&#8203;2526](https://togithub.com/redis/jedis/issues/2526))
-   Remove throwing IOException from JedisSocketFactory ([#&#8203;2528](https://togithub.com/redis/jedis/issues/2528))
-   Remove JedisClusterHostAndPortMap ([#&#8203;2518](https://togithub.com/redis/jedis/issues/2518))
-   Unify clustered and non-clustered interfaces ([#&#8203;2533](https://togithub.com/redis/jedis/issues/2533))
-   CONFIG SET returns OK status ([#&#8203;2520](https://togithub.com/redis/jedis/issues/2520))
-   Return type should be `long` (or any primitive) ([#&#8203;2547](https://togithub.com/redis/jedis/issues/2547))
-   Pool extends GenericObjectPool ([#&#8203;2521](https://togithub.com/redis/jedis/issues/2521))
-   Use Charset instead of String for Protocol.CHARSET ([#&#8203;2658](https://togithub.com/redis/jedis/issues/2658))
-   Jedis 4 changes ([#&#8203;2693](https://togithub.com/redis/jedis/issues/2693))
-   Improving ACL Command Support ([#&#8203;2697](https://togithub.com/redis/jedis/issues/2697)) ([#&#8203;2693](https://togithub.com/redis/jedis/issues/2693))
-   Return List instead of Set where it makes sense ([#&#8203;2709](https://togithub.com/redis/jedis/issues/2709)) ([#&#8203;2693](https://togithub.com/redis/jedis/issues/2693))
-   Implemented JedisSharding and ShardedPipeline ([#&#8203;2707](https://togithub.com/redis/jedis/issues/2707)) ([#&#8203;2693](https://togithub.com/redis/jedis/issues/2693))
-   Upgrade test dependencies ([#&#8203;2720](https://togithub.com/redis/jedis/issues/2720))
-   Support exclusive range in XRANGE command ([#&#8203;2683](https://togithub.com/redis/jedis/issues/2683)) ([#&#8203;2719](https://togithub.com/redis/jedis/issues/2719))
-   Throw exception if JedisCluster cannot connect to any host-port ([#&#8203;2275](https://togithub.com/redis/jedis/issues/2275)) ([#&#8203;2721](https://togithub.com/redis/jedis/issues/2721))
-   Address Javadoc warnings (and related changes) ([#&#8203;2730](https://togithub.com/redis/jedis/issues/2730))
-   Easier constructors for pipeline classes ([#&#8203;2731](https://togithub.com/redis/jedis/issues/2731))
-   Upgrade dependencies ([#&#8203;2740](https://togithub.com/redis/jedis/issues/2740))
-   Remove deprecations that got remained ([#&#8203;2741](https://togithub.com/redis/jedis/issues/2741))
-   Resolve XADD conflicts ([#&#8203;2742](https://togithub.com/redis/jedis/issues/2742))
-   Remove Sentinel class ([#&#8203;2744](https://togithub.com/redis/jedis/issues/2744))
-   Resource within cluster retry should be closed quietly ([#&#8203;2745](https://togithub.com/redis/jedis/issues/2745))
-   Replace deprecated interface with new interface in JedisPoolConfig and ConnectionPoolConfig ([#&#8203;2749](https://togithub.com/redis/jedis/issues/2749))
-   Use slf4j-simple to replace log4j implementation ([#&#8203;2753](https://togithub.com/redis/jedis/issues/2753))

#### Contributors

We'd like to thank all the contributors who worked on this release!

[@&#8203;sazzad16](https://togithub.com/sazzad16), [@&#8203;yangbodong22011](https://togithub.com/yangbodong22011), [@&#8203;dengliming](https://togithub.com/dengliming), [@&#8203;AvitalFineRedis](https://togithub.com/AvitalFineRedis), [@&#8203;JarvisCraft](https://togithub.com/JarvisCraft), [@&#8203;chinafzy](https://togithub.com/chinafzy), [@&#8203;zeekling](https://togithub.com/zeekling), [@&#8203;chayim](https://togithub.com/chayim).

### [`v3.8.0`](https://togithub.com/redis/jedis/releases/v3.8.0)

[Compare Source](https://togithub.com/redis/jedis/compare/v3.7.1...v3.8.0)

##### This is the last release planned for Jedis 3.x.

#### 🚀 New Features

-   Added aclLogReset() method to support ACL LOG RESET subcommand ([#&#8203;2737](https://togithub.com/redis/jedis/issues/2737))
    This should replace both `aclLog(byte[])` and `aclLog(String)` methods.
-   Support binary version of CLUSTER GETKEYSINSLOT ([#&#8203;2689](https://togithub.com/redis/jedis/issues/2689))

#### 🧰 Other Changes

-   Refresh nodes when renewSlotCache ([#&#8203;2642](https://togithub.com/redis/jedis/issues/2642))
-   Change in JedisClusterInfoCache.discoverClusterNodesAndSlots ([#&#8203;2682](https://togithub.com/redis/jedis/issues/2682))
-   Do not catch checked Exception if it is not thrown ([#&#8203;2615](https://togithub.com/redis/jedis/issues/2615))
-   Address Jedis version 4 breaking changes ([#&#8203;2737](https://togithub.com/redis/jedis/issues/2737))
-   Deprecate SENTINEL SLAVES ([#&#8203;2673](https://togithub.com/redis/jedis/issues/2673))
-   Upgrade Commons Pool to 2.11.1 ([#&#8203;2654](https://togithub.com/redis/jedis/issues/2654))
-   Use slf4j-simple to replace log4j implementation ([#&#8203;2753](https://togithub.com/redis/jedis/issues/2753))

Thanks [@&#8203;yangbodong22011](https://togithub.com/yangbodong22011), [@&#8203;zeekling](https://togithub.com/zeekling), [@&#8203;adiamzn](https://togithub.com/adiamzn), [@&#8203;bokshitsky](https://togithub.com/bokshitsky), [@&#8203;sazzad16](https://togithub.com/sazzad16) for contributing.

### [`v3.7.1`](https://togithub.com/redis/jedis/releases/v3.7.1)

[Compare Source](https://togithub.com/redis/jedis/compare/v3.7.0...v3.7.1)

This is a maintenance release for [CVE-2021-44228](https://logging.apache.org/log4j/2.x/security.html), the Log4j security issue. This issue has no impact on Jedis, and only impacted its tests.

#### Changes

##### Maintenance

-   Bump log4j-core from 2.13.3 to 2.15.0 ([#&#8203;2723](https://togithub.com/redis/jedis/issues/2723))
-   Limit Redis branch to 6.2 for Jedis branch 3 ([#&#8203;2714](https://togithub.com/redis/jedis/issues/2714))
-   Use only SENTINEL REPLICAS in tests ([#&#8203;2673](https://togithub.com/redis/jedis/issues/2673))
-   XADD wrong number of arguments message changed ([#&#8203;2672](https://togithub.com/redis/jedis/issues/2672))
-   Ignore testing 'invalid multibulk length' ([#&#8203;2655](https://togithub.com/redis/jedis/issues/2655))

</details>

---

### Configuration

📅 **Schedule**: At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Never, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/GoogleCloudPlatform/java-docs-samples).
GoogleCloudPlatform/java-docs-samples,GoogleCloudPlatform/java-docs-samples,GoogleCloudPlatform/java-docs-samples,GoogleCloudPlatform/java-docs-samples,GoogleCloudPlatform/java-docs-samples,GoogleCloudPlatform/java-docs-samples