Instantite JedisPool in a more concise way
See original GitHub issueExpected behavior
Create JedisPool
instance in a more concise way:
JedisPool redisCli = new JedisPool(host, port, password);
Actual behavior
JedisPool redisCli = new JedisPool(GenericObjectPoolConfig, host, port, timeout, password);
Steps to reproduce:
Creating a JedisPool
instance.
Redis / Jedis Configuration
default configuration
Jedis version:
2.9.0
Redis version:
6.0.4
Java version:
1.8.0_201
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
Instantite JedisPool in a more concise way · Issue #2212 · redis/jedis ...
Expected behavior Create JedisPool instance in a more concise way: JedisPool redisCli = new JedisPool(host, port, password); Actual behavior JedisPool ...
Read more >Jedis pool is initialised multiple times - java - Stack Overflow
Looks like a basic multithreading case. Your app asks for 5 connections in a short time. All of them see that pool==null and...
Read more >How to optimize Redis with JedisPool - Site24x7 Blog
Setting proper parameters for JedisPoolConfig is crucial, as this determines how a new connection will be created. JedisPool optimization ...
Read more >Spring Data and Redis - Java Code Geeks - 2022
Spring Data Redis provides consistent and concise programming abstraction over different Redis clients (see please Picking Redis Java client).
Read more >API Client Basics | Slack SDK for Java
Here is the list of the methods in a Slack object to create an API client. ... If you prefer Kotlin language, your...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Closing this issue in favor of following constructors:
JedisPool(final String host, int port, String user, final String password)
https://github.com/redis/jedis/blob/1a9de794847c6f7bfda51249225ead066f9f4387/src/main/java/redis/clients/jedis/JedisPool.java#L79-L81JedisPool(final GenericObjectPoolConfig poolConfig, final String host, int port, String user, final String password)
https://github.com/redis/jedis/blob/1a9de794847c6f7bfda51249225ead066f9f4387/src/main/java/redis/clients/jedis/JedisPool.java#L83-L86@17hao Since jedis-3.4.1, there is a new constructor:
After introduction of ACL in Redis, we are trying to avoid methods/constructors with only password (without user).