Commit Graph

794 Commits

Author SHA1 Message Date
Thomas Darimont
14bf8f13b1 DATAREDIS-243 - Ensure compatibility with Spring Framework 4.0.
Updated dependency of XStream since Spring framework 4.0 requires a newer version.
Spring 4 added another method to get cached object to the Cache interface. The method has been added to RedisCache in order to provide compatibility, while calling get internally and casting values to required type.
2014-01-15 10:45:37 +01:00
Thomas Darimont
44584b235d DATAREDIS-245 - Prevent Excessive Thread creation in tests.
Due to some missing cleanup procedures excessive thread creation lead to JVM crashes during a full test run on some machines.
Improved test harness in order to properly shutdown unused threads.

Added idea artefacts to .gitignore.
2014-01-15 10:38:32 +01:00
Thomas Darimont
e21c81c746 DATAREDIS-247 - locale independent test execution.
Original pull request #17.
2014-01-13 17:24:11 +01:00
Jennifer Hickey
5d00542741 Revert "Temp revert "Lazily instantiate shared Lettuce connection""
This reverts commit c6a2a4f7da.
2013-08-21 12:38:02 -07:00
Jennifer Hickey
b106f03bd7 Do not return Jedis conns to pool after NPE
DATAREDIS-153

- Return conn to pool as broken resource if NPE
occurs (for example if a null key or value is given),
preventing later flush of OutputStream with incomplete
data

- Workaround Jedis issue in pub/sub tests that prevents
subscribing with a pooled connection

- Continue not using pool in conn tests, as they
are too brittle with potentially unclosed pipelines,
unexecuted txs, etc
2013-08-21 12:30:42 -07:00
Jennifer Hickey
e1f54d6c68 Implement RedisMap concurrent remove and replace
DATAREDIS-37
2013-08-20 16:57:49 -07:00
Jennifer Hickey
c6a2a4f7da Temp revert "Lazily instantiate shared Lettuce connection"
This reverts commit f9cdad751c.
2013-08-19 12:34:49 -07:00
Jennifer Hickey
e94fa9a35a Throw translated Exception on SRP conn failure
DATAREDIS-234
2013-08-16 15:21:25 -07:00
Jennifer Hickey
6290cbad06 Add password to SrpConnectionFactory
DATAREDIS-203
2013-08-16 15:15:33 -07:00
Jennifer Hickey
f9cdad751c Lazily instantiate shared Lettuce connection
Allow app context to start if Redis is down

DATAREDIS-209
2013-08-16 14:20:30 -07:00
Jennifer Hickey
500a94d83d Reduce test execution time when runLongTests not set 2013-08-16 13:37:29 -07:00
Jennifer Hickey
aa46fdf0a6 Make RedisTemplate use millisecond precision
DATAREDIS-195

- Make expire and expireAt use pExpire and pExpireAt,
falling back to expire and expireAt if not available
(driver does not support or using Redis 2.4)

- Add new getExpire method that will return mills
if requested, using pTTL if supported
2013-08-16 13:14:08 -07:00
Jennifer Hickey
ac851c816b Fix MessageListenerAdapter sending msg instead of body
when no Serializer is specified

DATAREDIS-233
2013-08-15 13:13:41 -07:00
Jennifer Hickey
4b3ff6582c Fix ambiguous constructors in DefaultRedisScript
Can't specify a resource location for script as a
String in Spring app context, as it would get
injected as script text instead. Switched to property
injection for clarity.
2013-08-05 10:54:36 -07:00
Jennifer Hickey
a28a4f1412 Add RedisAtomicDouble
DATAREDIS-198
2013-08-04 18:27:27 -07:00
Jennifer Hickey
7d387ab529 Add RedisTemplate methods for executing Redis scripts
DATAREDIS-199
2013-08-04 16:43:00 -07:00
Jennifer Hickey
faa78cdfaa Fix Lettuce eval suppressing Exceptions in List return
DATAREDIS-232
2013-08-04 16:37:26 -07:00
Jennifer Hickey
c318f24c13 Support zRem with multiple values
DATAREDIS-99
2013-08-01 18:32:15 -07:00
Jennifer Hickey
44460dfdee Support zAdd with multiple values
DATAREDIS-99
2013-08-01 18:32:15 -07:00
Jennifer Hickey
628cc175bc Verify order of elements in LinkedHashSets 2013-08-01 18:32:14 -07:00
Jennifer Hickey
4020f9d97d Support sRem with multiple values
DATAREDIS-99
2013-08-01 18:32:14 -07:00
Jennifer Hickey
d4377b4d17 Support sAdd with multiple values
DATAREDIS-99
2013-08-01 18:32:14 -07:00
Jennifer Hickey
6ad3bcf688 Ignore intermittently failing test until fixed
Should be fixed in DATAREDIS-108
2013-08-01 18:32:13 -07:00
Jennifer Hickey
dae047f9c5 Support rPush with multiple values
DATAREDIS-99
2013-08-01 18:32:13 -07:00
Jennifer Hickey
36780d14a1 Support lPush with multiple values
DATAREDIS-99
2013-08-01 18:32:13 -07:00
Jennifer Hickey
8f362b481c Support hDel with multiple hash keys
DATAREDIS-99
2013-08-01 18:32:13 -07:00
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
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
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
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
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
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
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