Jungtaek Lim
1d29b759fe
Make it better to use URI from Jedis / JedisPool
...
* no need to provide password / DB index when user uses URI
* can provide timeout when user users URI
2014-06-15 21:50:38 +09:00
Jungtaek Lim
6f8d46ae4f
Merge branch 'master' into implements-closeable-to-pooled-jedis-shardedjedis
...
Conflicts:
src/main/java/redis/clients/jedis/Jedis.java
src/main/java/redis/clients/jedis/JedisSentinelPool.java
src/main/java/redis/clients/jedis/ShardedJedis.java
src/test/java/redis/clients/jedis/tests/JedisPoolTest.java
2014-05-26 11:18:45 +09:00
Henning Schmiedehausen
46eef9530b
add a number of null check to return methods.
...
This allows calling these methods on error cleanup paths without having
to surround them with if checks all the time.
2014-02-27 10:58:46 -08:00
Jungtaek Lim
670e019a89
Implements Closeable to Pooled Jedis & ShardedJedis
...
* Implement Closeable from Jedis, ShardedJedis with Pooled
** resources from JedisPool, JedisSentinelPool, ShardedJedis, ShardedJedisPool
* Connection class : check whether Jedis Connection is broken
** when it's time to throw JedisConnectionException, mark Connection to broken
2014-02-23 23:50:40 +09:00
Jonathan Leibiusky
105ca9f5bb
Reformat all files in the project according to java conventions.
2014-01-31 11:24:06 -05:00
Jonathan Leibiusky
265eab0cc9
Merge branch 'reset-state-of-jedis-client' of github.com:HeartSaVioR/jedis into HeartSaVioR-reset-state-of-jedis-client
2014-01-28 16:50:11 -05:00
Jungtaek Lim
3073f778b4
JedisPool / JedisSentinelPool resets returning object's state (watched,
...
multi)
* BinaryClient / BinaryJedis : added feature to reset its state
(watched, multi)
* JedisPool / JedisSentinelPool : calls new feature (reset state) when
Jedis object returns to pool
* Unit Test included
2013-12-21 01:33:46 +09:00
Marcos Nils
a8987ed865
Add first test to thorw MovedDataException when receiving MOVED from a cluster node
2013-12-07 17:55:17 -03:00
Jonathan Leibiusky
bbb867781d
upgrade to commons-pool 2
2013-11-28 08:13:57 -05:00
Eoin Coffey
796f80d9c0
Allow JedisPool to set a custom client name
2013-10-05 16:44:52 -04:00
Hisham Mardam-Bey
c2a48afafd
Initial JedisSentinelPool based on code from hamsterready/jedis-sentinel-pool.
...
Given a master name and a set of sentinels this pool will subscribe to the
Sentinel notifications about master changes (+switch-master) and
re-establishes the pool to the new master when one is announced.
2013-08-23 23:06:13 -04:00
mindwind
7b6006b669
merge - jedis pull request #429
2013-06-29 12:59:32 +08:00
Jonathan Leibiusky
8f9763a7e9
add url support
2012-08-01 16:49:44 -03:00
Jonathan Leibiusky
d136225281
remove unused import
2012-04-17 18:45:31 -03:00
Ivo Ramirez
53f829fb10
JedisPool accepts BinaryJedis as a resource for return. Issue #171
...
Conflicts:
src/main/java/redis/clients/util/Pool.java
2012-04-17 16:56:26 -04:00
Eric Hauser
90dd6a1068
Merge pull request #168 from kevinsawicki/jedis
...
---
This constructor type is available on the ```Jedis``` class and so I added it to ```JedisPool``` for consistency.
Conflicts:
src/main/java/redis/clients/jedis/JedisPool.java
2011-09-12 23:06:24 -04:00
Michael Cameron
fb33b262e4
Add ability to specify database number in pool config
2011-08-26 16:47:37 -05:00
Kevin Sawicki
e9644a4529
Add JedisPool constructor that takes only host string
2011-06-24 16:44:12 -07:00
Jonathan Leibiusky
9006178a05
JedisPool timeout was broken. Values <= 0 where treated as -1, where 0 is infinite
2011-06-03 11:48:55 -03:00
Jonathan Leibiusky
dadaaecfdb
Add constrcutor with default pool conf
2010-12-10 17:26:02 -03:00
zoz
ff8ac4c9db
Surround jedis.quit() in try/catch to ignore connection problems in
...
method destroyObject
2010-12-02 12:14:01 -08:00
Jonathan Leibiusky
c4263b0a2d
remove java 1.6 specific annotations
2010-11-30 12:58:20 -03:00
Jonathan Leibiusky
71eb4c5b4a
replace custom pool implementation with apache's
2010-11-21 18:16:31 -03:00
Yaourt
3d8d152227
Apache Jakarta commons-pool based JedisPool.
2010-11-07 22:32:19 +01:00
Jonathan Leibiusky
6a1e141064
Added sharding benchmark and removed some imports
2010-09-30 21:04:21 -03:00
Alex Tkachman
53efb8471f
simplification of sharding
2010-09-16 15:41:04 +02:00
Jonathan Leibiusky
224555afd2
Added password to Jedis, JedisPool and ShardedJedis constructor for easier and more efficient usage
2010-09-14 16:43:48 -03:00
Jonathan Leibiusky
395a32c269
Make sure resource is not null before destroying it
2010-09-09 09:11:58 -03:00
Jonathan Leibiusky
1d37728817
If it is not possible to create the resource, keep trying until it can
2010-09-07 17:10:52 -03:00
Jonathan Leibiusky
68905396d5
Fixed EOFException issue with JedisPool. Was trying to reuse a broken Jedis
2010-09-04 11:29:54 -03:00
Jonathan Leibiusky
00dedc5f25
Fix for GH-4, isResourceValid should check for PONG not OK
2010-09-03 10:38:33 -03:00
Jonathan Leibiusky
aa7a96d05c
Fixed broken constructor. Wasn't setting default protocol
2010-08-30 11:12:24 -03:00
Jonathan Leibiusky
96709e0a16
Added connection pool
2010-08-24 00:34:37 -03:00