-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecates JedisPool returnResource and returnBrokenResource #912
Conversation
* {@link #persist(byte[]) PERSIST} command. | ||
* <p> | ||
* Time complexity: O(1) | ||
* @deprecated use BinaryJedis.pexpire(byte[], long) or Jedis.pexpire(String,long) Set a timeout |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it's unintentional. Could you revert it?
Some trivial whitespace issues but LGTM overall. |
@HeartSaVioR the format changes are not unintentional i've run |
@marcosnils Oh, OK. Look great! |
@HeartSaVioR of course!. I totally forgot about those two Pools. I'll update shortly |
@HeartSaVioR changes have been made. Can you please review? Thx!. |
@@ -38,6 +38,10 @@ public ShardedJedis getResource() { | |||
return jedis; | |||
} | |||
|
|||
/** | |||
* @deprecated starting from Jedis 3.0 this method won't exist. Resouce cleanup should be done | |||
* using @see {@link redis.clients.jedis.Jedis#close()} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be ShardedJedis#close().
@marcosnils Added some note, without these looks great to me! |
@HeartSaVioR done!. |
Looks good to me. But Travis is failing again :( |
I've re-run the tests again. |
👍 Let's merge it |
Deprecates JedisPool returnResource and returnBrokenResource
Merged into master, 2.6, 2.7 branch respectively. |
👍 |
Per #909 as we're planning not to support these methods in the future to avoid confusions.