Skip to content
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

无法共享长连接池 #22

Closed
scguoi opened this issue Jul 8, 2016 · 2 comments
Closed

无法共享长连接池 #22

scguoi opened this issue Jul 8, 2016 · 2 comments

Comments

@scguoi
Copy link

scguoi commented Jul 8, 2016

每次取出来的Jedis连接,没有还回去的接口,无法共享长连接池,一直使用一个对象很不靠谱。

@Apache9
Copy link
Member

Apache9 commented Jul 8, 2016

直接close就是归还连接

@chinaer
Copy link

chinaer commented Jul 20, 2016

这个是java语法糖,这样它自己会调用jedis.close()方法,把资源还回到pool里面去的@scguoi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants