Jungtaek Lim
61f8ff6918
Support zrevrangebylex command
...
* binary, string, pipeline (binary, string), sharded(binary, string), cluster (string)
2014-09-27 15:27:28 +09:00
Marcos Nils
687716902d
Add support for cluster reset command. Some tests were refactored per the inclusion of the new command
2014-09-14 15:43:18 -03:00
Mayank Dang
37a3c7b835
Merging with upstream, necessary changes, shifting poolConfig as private instance variable from JedisClusterConnectionHandler to JedisClusterInfoCache due to design change in previous commits.
2014-09-11 16:16:08 +05:30
Jungtaek Lim
8492757f7a
Merge branch 'feature_blocklist_parameter' of https://github.com/catinred2/jedis into catinred2-feature_blocklist_parameter
...
Conflicts:
src/main/java/redis/clients/jedis/Jedis.java
src/main/java/redis/clients/jedis/JedisCluster.java
2014-09-11 11:31:29 +09:00
Jungtaek Lim
8a5eb60512
Merge branch 'master' into support-sorted-set-with-lex
...
Conflicts:
src/main/java/redis/clients/jedis/BinaryShardedJedis.java
src/main/java/redis/clients/jedis/Jedis.java
src/main/java/redis/clients/jedis/Protocol.java
src/test/java/redis/clients/jedis/tests/commands/SortedSetCommandsTest.java
2014-09-10 21:43:32 +09:00
Jungtaek Lim
0a094ff0b4
Implements #701 , add close() to JedisCluster
2014-08-28 23:49:52 +09:00
Ming
a30598b7cb
add blpop/brpop with timeout parameter interface to JedisCommands
2014-08-14 10:37:28 +08:00
Jungtaek Lim
5bf4a697fb
Merge branch 'unsigned_long_cursor_remove_deprecated' of https://github.com/HeartSaVioR/jedis into HeartSaVioR-unsigned_long_cursor_remove_deprecated
...
Conflicts:
src/main/java/redis/clients/jedis/Jedis.java
src/main/java/redis/clients/jedis/JedisCluster.java
src/main/java/redis/clients/jedis/ScanResult.java
src/main/java/redis/clients/jedis/ShardedJedis.java
2014-08-12 10:07:26 +09:00
Jungtaek Lim
1e94acd7da
Merge branch 'fix/complete-interface' of https://github.com/lstrojny/jedis into lstrojny-fix/complete-interface
2014-08-12 09:40:45 +09:00
Jungtaek Lim
d7cd3a0af6
Fixed critical JedisCluster bug : hlen calls hdel
2014-08-04 09:28:17 +09:00
Lars Strojny
18c4a987d5
Completing interface
2014-07-01 15:41:57 +02:00
Mayank Dang
0e25cf65fb
Merging upstream
2014-05-29 20:44:40 +05:30
Jonathan Leibiusky
8f52dc743f
Merge pull request #615 from xetorthio/hll-resurrect-afefb71e57b0258a52b465b2b4e57c132aef4db9
...
Support for HLL
2014-05-25 13:34:13 -04:00
Steve Parrington
51de5f72ab
Added Set NXXX and EXPX options for JedisCluster and ShardedJedis
2014-05-21 16:09:47 +01:00
Alok Singh
b633024c11
Move pfcount(keys) method to multikey interfaces
2014-04-28 16:41:09 -07:00
Alok Singh
cd722e5a82
Add support for pfcount with multiple keys
2014-04-28 14:17:46 -07:00
Jungtaek Lim
409740f06c
Support Sorted Set with LEX commands
...
* new commands : ZLEXCOUNT, ZRANGEBYLEX, ZREMRANGEBYLEX
** added commands to Jedis, ShardedJedis, JedisCluster, PipelineBase with Binary
/ Normal(String)
** description links
*** http://redis.io/commands/zlexcount
*** http://redis.io/commands/zrangebylex
*** http://redis.io/commands/zremrangebylex
** Unit test included
2014-04-22 23:39:37 +09:00
Jungtaek Lim
1345b5c1da
Apply PF* commands to JedisCluster, ShardedJedis
...
* Apply PF* commands to JedisCluster, ShardedJedis
* PF* commands to interface
** pfadd / pfcount : JedisCommands
** pfmerge : MultiKeyCommands
2014-04-05 22:19:11 +09:00
Mayank Dang
924f27919e
Merging upstream
2014-03-26 13:27:47 +05:30
Marcos Nils
4e78b811be
Merge JedisSlotBasedConnectionGuaranteedConnectionHandler to JedisSlotBasedConnectionHandler
2014-03-03 18:56:04 -03:00
Marcos Nils
b5fe10729b
Merge branch 'fix-jedis-cluster-failover-to-slave' of https://github.com/HeartSaVioR/jedis into HeartSaVioR-fix-jedis-cluster-failover-to-slave
2014-03-03 18:49:43 -03:00
Marcos Nils
ddb1870a5f
Fix bug in JedisCluster del command. Fix #568
2014-02-27 10:48:46 -03:00
Jungtaek Lim
882d662470
Make Jedis Cluster more likely to antirez's redis-rb-cluster
...
JedisClusterCommand
* improvements on connection error handling
** if based on slot connection throws connection related exception, retry to random node
** if we retry with random node, but all nodes are unreachable, throw JedisConnectionException without retry
** try to release connection whether connection is broken or not
* bug fix : if asking flag is on, and success this time, set asking flag to off
JedisClusterConnectionHandler
* have flexibility on initializing slots cache
** allow some nodes connection failure - skip
** if current node is success initializing slots cache, skip other nodes
** if current node failed to initialize slots cache, discard all discovered nodes and slots
* set nodes if node does not exist in nodes
** it restricts JedisPool to replace - prevent IllegalStateException : Returned object not currently part of this pool
JedisSlotBasedConnectionGuaranteedConnectionHandler
* getConnection (random connection)
** check all connections by random sequence
** always return valid connection (able to ping-pong)
** throw exception if all connections are invalid
* some refactoring
2014-02-25 18:29:09 +09:00
Mayank Dang
db765227df
fix #553 : Overloading JedisCluster constructor to include poolConfig to be used internally for all JedisPool classes
2014-02-19 18:21:56 +05:30
Marcos Nils
e4de67048e
Make JedisCluster multihread by improving connection handling
2014-02-18 21:59:53 -03:00
Jungtaek Lim
0aacd48c81
Remove all @Deprecated things about *scan
...
* remove all @Deprecated methods about *scan
* rename ScanResult.getStringCursor() to ScanResult.getCursor()
** its original name
* let unit tests follow this change
2014-02-10 07:28:46 +09:00
Jungtaek Lim
ed81f37d1b
Introduce *scan with "string" cursor parameter to support unsigned long
...
cursor
* overload all *scan method to change "int" cursor to "string" cursor
* set @Deprecated and leave reason to deprecate and when to remove to
current *scan method
* modify unit tests to make it work with new *scan method
2014-02-10 07:08:39 +09:00
Marcos Nils
b05d9adfb0
Change zadd parameter order to allow duplicated scoremembers but not members
2014-01-26 13:53:34 -03:00
Jonathan Leibiusky
842dcd2a95
Merge branch 'cluster' of github.com:marcosnils/jedis into marcosnils-cluster
...
Conflicts:
src/main/java/redis/clients/jedis/BinaryClient.java
src/main/java/redis/clients/jedis/Client.java
src/main/java/redis/clients/jedis/Jedis.java
src/main/java/redis/clients/jedis/Protocol.java
2014-01-16 16:35:04 -05:00
Marcos Nils
46733c5d5a
Add test for redis cluster max redirections and refactor JedisClusterCommand exception handling
2014-01-16 18:04:27 -03:00
Marcos Nils
dd0bbdaf91
Several changes have been added to this commit:
...
- Add asking to cluster commands
- Make jedis cluster return connection to original pool
- Add tests for MOVED and ASK cluster responses
- Refactor connection handler to recalculate connections based on slots
This commit makes the first usable version of Jedis along with Redis Cluster
2014-01-03 16:42:21 -03:00
Marcos Nils
b2d22e2060
Add slot based connection which routes requests according to key slot
2013-12-28 00:59:35 -03:00
Marcos Nils
9f767a0848
Add automatic discovery of cluster nodes
2013-12-27 23:09:44 -03:00
Marcos Nils
af72248c22
Implement all Jedis cluster commands and rename RedisSlot class
2013-12-20 16:56:29 -03:00
Marcos Nils
0bc27ac3a2
Refactor redis cluster connection handler and add JedisAskDataException handling
2013-12-20 15:28:32 -03:00
Marcos Nils
c008070045
Add JedisClusterCommand and updated code to use it respectively
2013-12-10 10:25:41 -03: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
46966fb89f
Prepare redis cluster for testing. The cluster will always be in a deterministic state to be able to reproduce -MOVED and -ASK
2013-12-02 19:27:12 -05:00