Commit Graph

934 Commits

Author SHA1 Message Date
Jennifer Hickey
ce76ad1841 Make Long and Double test factories return unique vals
Random was returning the same value multiple times,
causing issues with Set tests
2013-08-01 18:32:12 -07:00
Jennifer Hickey
28c8dca650 Fix failing test 2013-07-31 13:25:26 -07:00
Jennifer Hickey
5aad4378f5 Fix test failures 2013-07-31 13:11:24 -07:00
Jennifer Hickey
04eee8c0c8 Add tests of RedisTemplate with binary key/values
DATAREDIS-227
2013-07-31 09:18:55 -07:00
Jennifer Hickey
c1cda95baa Allow usage of RedisTemplate without serialization
DATAREDIS-227

Add "enableDefaultSerializer" property on
RedisTemplate. If false, serializers can be null
and no serialization will be performed if they are.
2013-07-30 18:31:27 -07:00
Jennifer Hickey
a5e8636247 Improve test speed and add failure diagnostics 2013-07-29 21:50:36 -07:00
Jennifer Hickey
b190103056 Improve RedisTemplate test coverage 2013-07-29 21:23:53 -07:00
Jennifer Hickey
4505629ad8 Fix NPE on SRP sort with alpha not set
DATAREDIS-230
2013-07-29 21:23:53 -07:00
Jennifer Hickey
226d6b4c87 Enable testing RedisTemplate with multiple serializers 2013-07-29 21:23:53 -07:00
Jennifer Hickey
997ba2c40e Enable JRedis Collections tests 2013-07-29 21:23:52 -07:00
Jennifer Hickey
2af522f036 Add more opsForX test coverage 2013-07-29 21:23:52 -07:00
Jennifer Hickey
f82feb2b4e Enable testing opsForX with multiple serializers 2013-07-29 21:23:51 -07:00
Jennifer Hickey
6fdab1c3c1 Fix Jedis conns not returning to pool on failed select
DATAREDIS-213
2013-07-28 21:00:08 -07:00
Jennifer Hickey
9255ae57ad Remove 5 second wait starting MsgListenerContainer
with no listeners

DATAREDIS-207
2013-07-28 20:34:32 -07:00
Jennifer Hickey
94c4a0eed1 Fix javadoc warnings 2013-07-25 15:19:53 -07:00
Jennifer Hickey
a5fc567d4a Add RedisTemplate executePipelined methods
DATAREDIS-119

Add methods to execute RedisCallbacks and
SessionCallbacks in a pipeline and return
deserialized results
2013-07-25 15:19:07 -07:00
Jennifer Hickey
f90e373877 Fix incorrect doc on injection of opsForXXX 2013-07-25 09:50:42 -07:00
Jennifer Hickey
2e7a04fcd0 Add deserialize of exec results to RedisTemplate
DATAREDIS-228

- RedisTemplate.exec() will now deserialize raw results
using RT serializers, where applicable. This behavior
is disabled if convertPipelineAndTxResults is set
to false on the ConnectionFactory

- Add new RedisTemplate.exec(RedisSerializer) method
that will deserialize all results using the provided
serializer.
2013-07-24 16:30:17 -07:00
Jennifer Hickey
48e9d34a2f Fix NPE on deserialize of Tuple values in tx/pipeline
DATAREDIS-229
2013-07-24 16:05:39 -07:00
Jennifer Hickey
76fad5f2bc Do not deserialize StringRedisConn pipeline/tx results by default
- Change StringRedisConn to not deserialize pipelined/
exec results by default

- Remove option to enable/disable deserialize of
results in StringRedisTemplate. In most cases, the
same StringRedisConn is not used b/w ops in a pipeline 
or tx, so this is rarely useful
2013-07-24 10:47:33 -07:00
Jennifer Hickey
be199d8c97 Make Lettuce return converted tx results
DATAREDIS-208
2013-07-23 14:58:43 -07:00
Jennifer Hickey
aa8d10b150 Make SRP return converted tx results
DATAREDIS-208
2013-07-23 14:37:03 -07:00
Jennifer Hickey
08d502083c Make Jedis return converted tx results
DATAREDIS-208
2013-07-23 14:35:03 -07:00
Jennifer Hickey
893b9f5007 Convert tx results in DefaultStringRedisConnection
DATAREDIS-208
2013-07-23 11:57:12 -07:00
Jennifer Hickey
bd839ddf0f Check FutureResult status field instead of instanceof 2013-07-22 19:28:24 -07:00
Jennifer Hickey
02481034b1 Reduce instances of IdentityConverter in DefStringRedisConn 2013-07-22 19:05:37 -07:00
Jennifer Hickey
ae118ff9d7 Add missing zRevRangeByScore ops to StringRedisConnection
DATAREDIS-145
2013-07-22 13:59:02 -07:00
Jennifer Hickey
31c682dbde Fix some tests not ignored on Redis 2.4 2013-07-22 12:32:54 -07:00
Jennifer Hickey
86173faa81 Throw UnsupportedOpException on watch in tx in Lettuce
DATAREDIS-225
2013-07-22 12:32:37 -07:00
Jennifer Hickey
5ab5ee031e Guard against NPEs on conversion of null values 2013-07-22 12:32:02 -07:00
Jennifer Hickey
f41647b3bc Fix Jedis ClassCastExceptions closing pipeline after tx
DATAREDIS-143

Use pipeline instance instead of transaction instance
to execute ops
2013-07-22 12:09:03 -07:00
Jennifer Hickey
a40a88795a SRP closePipeline should return List of tx results
and strip individual op results

DATAREDIS-223

- closePipeline now returns Lists of exec results instead of flattening results

- Temp revert conversion of exec results for
consistency
2013-07-19 12:06:34 -07:00
Jennifer Hickey
a0b4613a4b Lettuce closePipeline should return List of tx results
and strip individual op results

DATAREDIS-223
2013-07-18 15:43:37 -07:00
Jennifer Hickey
136ad487a8 Fix Lettuce setBit and setRange executing twice in pipeline
DATAREDIS-224
2013-07-18 15:37:52 -07:00
Jennifer Hickey
6d21cda407 Validate converted pipeline results in conn tests
DATAREDIS-200
2013-07-17 14:39:12 -07:00
Jennifer Hickey
dd8b0561ea Add deserialize of pipeline results to DefaultStringRedisConnection
DATAREDIS-200
2013-07-17 11:23:51 -07:00
Jennifer Hickey
470dd4654d Deprecate connection Utils in favor of Converters
DATAREDIS-200
2013-07-16 14:05:42 -07:00
Jennifer Hickey
daca61be03 Convert SRP pipelined results to correct data type
DATAREDIS-200

- Convert return of closePipeline() to same types
returned from individual operations

- Change SRP execute to return Reply.data() 
instead of Reply for consistency with pipeline
2013-07-16 14:05:41 -07:00
Jennifer Hickey
b2325c90d8 Convert Lettuce pipelined results to correct data type
DATAREDIS-200
2013-07-16 14:05:41 -07:00
Jennifer Hickey
441ac85999 Convert Jedis pipelined results to correct data type
DATAREDIS-200
2013-07-16 14:05:41 -07:00
Jennifer Hickey
1e9d3350ba Add FutureResult and common type converters for pipelined ops
DATAREDIS-200
2013-07-16 14:05:40 -07:00
Jennifer Hickey
49b36dcea4 Change StringRedisConnection set store return types
DATAREDIS-211

Change sUnionStore, sDiffStore, and sInterStore from
void to Long return type
2013-07-16 14:05:40 -07:00
Jennifer Hickey
14b84ab2af Fix StringRedisConnection not passed to callbacks in StringTemplate.execute()
DATAREDIS-222
2013-07-16 14:02:40 -07:00
Jennifer Hickey
9bad0adfa4 Test script load and flush in pipeline 2013-07-16 10:02:20 -07:00
Jennifer Hickey
bbd6822655 Fix SRP test timing issue 2013-07-16 09:35:31 -07:00
Jennifer Hickey
ae6e6153c7 Add connection integration tests 2013-07-16 09:34:58 -07:00
Jennifer Hickey
39970609ba Fix SRP exception on select in transaction
DATAREDIS-220
2013-07-15 18:05:10 -07:00
Jennifer Hickey
4f5eb9748a Fix NPEs on Jedis closePipeline/exec after move
DATAREDIS-218
2013-07-15 14:34:43 -07:00
Jennifer Hickey
11e4b03dcb Support null sortParams in Lettuce and SRP sort
DATAREDIS-217
2013-07-15 13:49:37 -07:00
Jennifer Hickey
95e8fbff27 Fix DefaultStringRedisConnection not passing begin/end to bitCount method
DATAREDIS-216
2013-07-12 09:44:17 -07:00