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

Make RedisCache thread-safe #38

Merged
merged 1 commit into from
Mar 14, 2015
Merged

Make RedisCache thread-safe #38

merged 1 commit into from
Mar 14, 2015

Conversation

cb372
Copy link
Owner

@cb372 cb372 commented Mar 14, 2015

Note that this is a breaking change, because the RedisCache constructor now takes a JedisPool instead of a Jedis.

Turns out that Jedis instances aren't thread-safe. If you want to be
thread-safe, the correct way to use Jedis is via a JedisPool.
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling ed8e91d on jedis-pool into * on master*.

@cb372 cb372 changed the title [breaking change] Switch RedisCache from Jedis to JedisPool Make RedisCache thread-safe Mar 14, 2015
cb372 added a commit that referenced this pull request Mar 14, 2015
Make RedisCache thread-safe
@cb372 cb372 merged commit dd086c7 into master Mar 14, 2015
@cb372 cb372 deleted the jedis-pool branch March 14, 2015 17:01
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

Successfully merging this pull request may close these issues.

None yet

2 participants