Commit Graph

49 Commits

Author SHA1 Message Date
Jungtaek Lim
7f45a2ca24 Apply "Format" to all files, Closes #765 2014-10-09 21:08:05 +09:00
Jungtaek Lim
cc3fe85608 Fix invalid file mode 755 -> 644 2014-09-27 13:23:48 +09:00
Himanshu Verma
9b824c3aad pipelined transaction response fix : indentation fix 2014-09-01 11:12:26 +05:30
Himanshu Verma
b219345761 pipelined transaction response fix 2014-08-31 16:06:33 +05:30
Jungtaek Lim
514144d472 Fix indentation (code formatting...) 2014-08-08 10:56:39 +09:00
Jungtaek Lim
1877185153 Merge branch 'master' into pipeline-and-transaction-can-handle-responses-on-their-own-status
* it's broken with later features, resetState()
* fixed resetState() to make it work with this PR

Conflicts:
	src/main/java/redis/clients/jedis/BinaryJedis.java
	src/main/java/redis/clients/jedis/Connection.java
	src/main/java/redis/clients/jedis/Pipeline.java
	src/main/java/redis/clients/jedis/Transaction.java
	src/main/java/redis/clients/jedis/TransactionBlock.java
2014-08-08 10:46:43 +09:00
Marcos Nils
667eeaf815 Merge pull request #626 from HeartSaVioR/fix-pipeline-throws-npe-without-multi
Fix Pipeline throws NPE using exec without multi (fixes #623)
2014-05-25 22:52:41 +03:00
Jungtaek Lim
bbc9078c3f Fix Pipeline NPE or sth with multi
* followings are now throwing JedisDataException: it was uncontrolled or controlled by Redis itself
** exec without multi
** discard without multi
** multi within multi
* updates unit test

actually Redis returns ERR and we can pick, but Pipeline + multi has some complex sequence
so it can just throw NPE without ERR
2014-04-29 00:05:49 +09:00
Jungtaek Lim
c2cf79c972 Apply PF* (string, binary) commands to Pipeline
* Apply PF* (string, binary) commands to Pipeline
* PF* Pipeline (string, binary) commands to interface
** pfadd / pfcount : BinaryRedisPipeline, RedisPipeline
** pfmerge : MultiKeyBinaryRedisPipeline, MultiKeyCommandsPipeline
2014-04-05 23:48:49 +09:00
Jungtaek Lim
68ee4e49d0 Set dependency to Response when multi in pipeline and build dependency
first if Response's dependency found and not built

* there's some dependency with exec response and command responses
within multi
* if command responses's get() called before exec response's build(), it
calls exec response's build() first
* unit test included
2014-02-17 13:37:06 +09:00
Jonathan Leibiusky
105ca9f5bb Reformat all files in the project according to java conventions. 2014-01-31 11:24:06 -05:00
Jungtaek Lim
2267c3318c Implemented Client.getMany(int count) to remove multiple flush while getting responses at once 2014-01-20 11:36:24 +09:00
Jungtaek Lim
f7bd9c8313 Refactor Pipeline / Transaction to consume responses based on their requests, not rely on pipelinedCommands
* remove pipelinedCommands field at Connection class
** it was a risky state value
*** it was under 0 or over 0(though all commands are executed) while some situation
* remove Connection.getAll(), Connection.getAll(int except)
2014-01-20 00:28:00 +09:00
Vincent Rischmann
6dbad88250 Fix issue #438 2013-08-06 00:36:48 +02:00
samhendley
6b5fccdc0a refactored pipelinebase so it is usable to implement SharedJedisPipeline as well. 2013-01-10 02:29:39 -05:00
samhendley
c8ddd237c3 extracted common Pipeline operations into PipelineBase and used that to simplify BinaryTransaction/Transaction 2013-01-10 01:16:54 -05:00
samhendley
4f9ddb3b5f fixed many pipeline requests that were returning the wrong types 2013-01-10 00:50:19 -05:00
samhendley
4c7cc57ede Added bitcount to standard interfaces and bitop to MultiKey interfaces (since it is non-shardable)
Merge branch 'impl-bitcount-and-bitop' of git://github.com/koron/jedis

Conflicts:
	src/main/java/redis/clients/jedis/JedisCommands.java
2013-01-09 23:49:05 -05:00
samhendley
c0bda88e2c Normalized Pipeline[] interfaces and extracted all of the non-shardable commands into the MultiKey* interfaces 2012-12-24 10:45:19 -05:00
samhendley
f9e818c92b Merge remote-tracking branch 'samhendley/binary_pipeline' 2012-12-22 11:08:01 -05:00
shendley
45be143e23 Fixed binary safe pipeline commands and added tests for pipelined hash functions 2012-12-18 10:26:56 -05:00
guycoleman
bf9bba6ef2 Extract string and binary common interfaces for Pipline and ShardedJedisPipeline. While I'm here add missing binary methods for some bit operations and fix return types for some sharded operations (e.g. getType) 2012-12-04 17:21:43 +00:00
Jonathan Leibiusky
42f19c7322 Merge branch 'pipeline_multi' of https://github.com/ivowiblo/jedis into pipeline_multi 2012-05-06 19:20:44 -03:00
ivowiblo
129e358c9d Now methods accepting infinit and exclusions are supported as String and byte[] overloads 2012-05-03 23:30:44 -04:00
ivowiblo
d526a32b12 Pipeline.exec() now returns a response 2012-04-29 02:55:22 -04:00
ivowiblo
d84ffdd8bc Format improved 2012-04-29 02:48:11 -04:00
ivowiblo
6bc2ac0a4f Pipeline supports Multi. Issue #251 is fixed. 2012-04-29 02:43:39 -04:00
Jonathan Leibiusky
05503212aa Merge branch 'variadic' of git://github.com/ivowiblo/jedis into variadic
Conflicts:
	src/main/java/redis/clients/jedis/BinaryClient.java
	src/main/java/redis/clients/jedis/BinaryJedis.java
	src/main/java/redis/clients/jedis/BinaryShardedJedis.java
	src/main/java/redis/clients/jedis/Client.java
	src/main/java/redis/clients/jedis/Commands.java
	src/main/java/redis/clients/jedis/Jedis.java
	src/main/java/redis/clients/jedis/ShardedJedis.java
2012-04-23 21:00:29 -03:00
ivowiblo
e4f7f61d00 Pipeline.sort with dstkey uses right Response type 2012-04-18 00:33:20 -04:00
ivowiblo
c9b413c323 Select support to pipeline. Thanks to @ib84 2012-04-17 16:40:54 -04:00
Jonathan Leibiusky
72ca494362 add missing command to Transaction, BinaryTransaction and Pipeline 2011-12-23 12:31:32 -03:00
Hamza Kaya
b17692ad9a Pipeline uses wrong response builder for get and getSet 2011-12-13 21:32:09 -03:00
Vladimir Soskov
ec0b58e183 fixing Issue 188 - Pipline.syncAndReturnAll changes 2011-07-31 20:28:51 -07:00
Jonathan Leibiusky
d690833ed6 avoid creating pipeline responses and do it lazy 2011-05-30 13:43:21 -03:00
Jonathan Leibiusky
4e15a23e41 list command receive now long parameters to be consistent with return type 2011-05-11 23:23:06 -03:00
Jonathan Leibiusky
cd3b50268e add publish command to Pipeline 2011-05-11 22:29:42 -03:00
Jonathan Leibiusky
97dd134eec Merge branch 'master' of https://github.com/lmar/jedis into lmar-master
Conflicts:
	src/main/java/redis/clients/jedis/Pipeline.java
	src/main/java/redis/clients/jedis/PipelineBlock.java
2011-04-06 21:52:48 -03:00
Jonathan Leibiusky
3fb7a52017 multi/exec block return formatted responses 2011-04-06 01:38:19 -03:00
Jonathan Leibiusky
6707b62342 pipeline return formatted values 2011-04-06 01:07:20 -03:00
lmar
58aa95c464 Binary versions of ZREVRANGEBYSCORE methods, some code cleanup 2011-03-08 20:19:54 +01:00
ewhauser
b7eb51f75c adding support for bit manipulation in to pipeline 2011-02-28 10:35:12 -03:00
Ghais Issa
a2a8bc0828 Binary client delegates for Pipline 2011-01-20 15:54:58 -03:00
Jonathan Leibiusky
66fc6be729 update transaction api with all the new commands 2011-01-20 12:18:25 -03:00
Jonathan Leibiusky
586cc9f6d9 add save and lastsave to pipeline 2010-12-20 11:29:22 -03:00
Jonathan Leibiusky
f43ca04bd9 add config resetstat 2010-12-20 11:21:11 -03:00
Jonathan Leibiusky
c30359581e add bgsave 2010-12-20 10:50:05 -03:00
Jonathan Leibiusky
15c0e242d7 add bgrewriteaof 2010-12-20 10:36:43 -03:00
Jonathan Leibiusky
afd34c8af6 hincr, incr and decr long support 2010-12-10 17:21:22 -03:00
Jonathan Leibiusky
8043f12e20 Add alternative pipeline usage 2010-11-27 15:44:43 -03:00