question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Instantite JedisPool in a more concise way

See original GitHub issue

Expected 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:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
sazzad16commented, Jan 17, 2021

Closing this issue in favor of following constructors:

0reactions
sazzad16commented, Dec 28, 2020

@17hao Since jedis-3.4.1, there is a new constructor:

JedisPool(final String host, int port, String user, final String password)

After introduction of ACL in Redis, we are trying to avoid methods/constructors with only password (without user).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found