Commit Graph

109 Commits

Author SHA1 Message Date
Jennifer Hickey
a40555ed19 Fix Lettuce exec to return null when pipelining
DATAREDIS-139
2013-04-01 10:17:19 -07:00
Jennifer Hickey
b3a0deebf8 Fix Jedis dbSize and flush ops executing synchronously while in pipeline or tx
DATAREDIS-141
2013-04-01 10:07:32 -07:00
Jennifer Hickey
fb25e79380 Fix NPE when deserializing a null Map
DATAREDIS-138
2013-04-01 09:53:08 -07:00
Jennifer Hickey
14087cbdc4 Fix SRP continuing to use pipeline after closed
DATAREDIS-157
2013-03-31 11:06:26 -07:00
Jennifer Hickey
a1fb8aad69 Add connection integration tests
- Add tests for all Connection methods

- Add tests for all Connection methods through pipeline

- Clean up DB between Connection test runs

- Reduce sleeps in pub/sub tests to improve execution time
2013-03-30 21:28:51 -07:00
Jennifer Hickey
22e1c9da9b Fix JedisConnection transaction discard
DATAREDIS-135
2013-03-21 18:16:57 -07:00
Jennifer Hickey
57edca0785 Fix Jredis sort to store results under new key
DATAREDIS-135

- Also fix NPE on parsing null getPattern in
DefaultSortParameters
2013-03-21 18:02:56 -07:00
Jennifer Hickey
8553552d2b Fix Lettuce and SRP blpop/brpop issues
- DATAREDIS-127 Fix Lettuce NPE on timeout

- DATAREDIS-128 Fix SRP arg array conversion and NPE
on timeout
2013-03-20 15:07:42 -07:00
Jennifer Hickey
9642b7ea72 Merge branch 'DATAREDIS-117' of github.com:porcelijn/spring-data-redis into porcelijn-DATAREDIS-117
Conflicts:
	src/test/java/org/springframework/data/redis/connection/AbstractConnectionIntegrationTests.java
	src/test/java/org/springframework/data/redis/connection/jedis/JedisConnectionIntegrationTests.java
2013-03-19 09:46:04 -07:00
Tijn Porcelijn
27a7ab0738 Fix for (hash) increment treats long values as int
While the (hash) increment() method accepts a long argument (and Redis
HINCRBY/INCRBY/DECRBY treats arguments as 64 bits), it is cast to a
32bits signed int in the JedisConnection class.

 - Removed offensive (& unnecessary) casts

 - Extended integration tests with incrBy, decrBy and hIncrBy to
   demonstrate handling of large numbers

 - Fixed typos in test support
   (CollectionTestParams, AbstractConnectionIntegrationTests)

Issue: DATAREDIS-117
2013-03-19 11:15:59 +01:00
Jennifer Hickey
a406417efd Fix intermittent SRP Pub/Sub test failures
SRP unsubscribes asynchronously, so occasionally not all messages were delivered prior to unsubscribe. Test will now unsubscribe on connection close instead.
2013-03-14 14:52:44 -07:00
Jennifer Hickey
d46bee7e57 Revert "convertAndSend returns the nr of targeted channels"
- DATAREDIS-118

- Change method return type back to void to fix backwards
compatibility issues

- Modify tests to assert specific clients receive or
don't receive messages vs comparing expected client counts
2013-03-06 16:40:00 -08:00
Costin Leau
5f24495d00 remove invalid javadoc 2013-02-13 17:58:33 +02:00
Costin Leau
cb0f559709 minor optimization to #del() 2013-02-13 17:32:38 +02:00
Costin Leau
74881befe8 make topic impl return their names (easier to dbg) 2013-02-11 17:14:56 +02:00
Costin Leau
570abe6f9c fix incorrect opening of pipeline during multi 2013-02-11 17:13:28 +02:00
Costin Leau
0d7eccc72b add template constructor 2013-02-11 16:01:00 +02:00
Costin Leau
7fbbea0ad3 add missing methods + various pipeline fixes 2013-02-08 18:07:28 +02:00
Costin Leau
75a727537f minor pipeline fix in Jedis 2013-02-08 18:07:02 +02:00
Costin Leau
76a1e01a2d several pipeline bug fixes for Lettuce driver
DATAREDIS-113
2013-02-08 18:06:44 +02:00
Costin Leau
e631af2f2e remove unused code + add NPE fix 2013-02-07 21:30:06 +02:00
Costin Leau
fb9b2215d3 improve unsubscription of channels/patterns in LettuceSub
DATAREDIS-113
2013-02-07 21:26:38 +02:00
Costin Leau
cad7878fa1 properly unsubscribe from channels not patterns on unsub all 2013-02-07 21:17:50 +02:00
Costin Leau
272c3f96c7 properly cleanup listeners in Message Container 2013-02-07 21:17:26 +02:00
Costin Leau
dbf5c7c64c properly close the underlying pubsub connection on (p)unsubscribe all
DATAREDIS-113
2013-02-07 21:16:50 +02:00
Costin Leau
0851fa3c20 add lettuce into the test batch
DATAREDIS-113
2013-02-07 20:19:39 +02:00
Costin Leau
de623fe186 fixes with closePipeline and pubsub
DATAREDIS-113
2013-02-07 20:09:53 +02:00
Costin Leau
e472a5f5e5 add support for Lettuce Redis driver
DATAREDIS-113
2013-02-07 17:52:17 +02:00
Costin Leau
0b70fa2d23 fix incorrect cast of BulkReply to byte[] in SprConnection
DATAREDIS-114
2013-02-05 19:01:14 +02:00
Costin Leau
a0f7e690cf add unimplemented method in StringRedisConnection 2013-02-05 18:58:16 +02:00
Costin Leau
b869bc7136 add warning regarding RedisTemplate initialization
DATAREDIS-112
2013-02-05 18:47:49 +02:00
Costin Leau
3be1d7d637 update copyright years 2013-02-05 18:47:49 +02:00
Costin Leau
a56e5f19ca sync javadoc with impl on useprefix 2013-01-28 12:13:02 -05:00
Costin Leau
e3946af60c improve conn handling when all subs are removed
DATAREDIS-107
RMLC properly closes
2013-01-25 10:57:04 +02:00
Costin Leau
613c2e09e7 remove listeners programatically in RMLContainer
DATAREDIS-107
listeners can be removed not just added programatically
fix bug causing double message dispatch for pattern subscriptions
introduce more pubsub tests
2013-01-25 00:11:47 +02:00
Costin Leau
12c66277f7 add hash/equals impl to Topic impl 2013-01-24 20:24:42 +02:00
Costin Leau
b35f6a3c5d convertAndSend returns the nr of targeted channels 2013-01-24 19:11:01 +02:00
Costin Leau
d01f13acfa update copyright header 2013-01-23 19:32:39 +02:00
Costin Leau
d22684dfda improve handling of staleness exception during connection init
DATAREDIS-109
2012-11-29 17:06:53 +02:00
Costin Leau
3f7d1b8baa improve handling of SocketException for Jedis driver
DATAREDIS-109
2012-11-29 16:46:57 +02:00
Costin Leau
d5e99d6afc add offset/count methods to ZSetOperations
DATAREDIS-104
(cherry picked from commit a6a78398ba438bd2123c16f9364f0c195f1cf59d)
2012-09-24 20:58:11 +03:00
Costin Leau
126b8c5a58 remove useless public abstract from interface
remove left-over from Eclipse generate interface
2012-08-20 18:44:32 +03:00
Costin Leau
a2002b705e polish REDIS-102 2012-08-14 17:30:49 +03:00
Costin Leau
9b39f21747 Merge pull request #5 from xpoft/master
DATAREDIS-102. Set usePrefix / Expire time
2012-08-14 06:52:57 -07:00
Costin Leau
f4b6bc42d4 Merge pull request #3 from bm3780/patch-1
use delimiter specified from constructor if possible, othe...
2012-08-13 08:19:03 -07:00
Alexander Fedorov
1136942c1a + set usePrefix
+ default expire time
+ cache zones expire time
2012-08-13 09:17:41 +04:00
Costin Leau
1944db6f08 add pipeline/multi-exec/NPE checks
REDIS-100
additionally fix the return value for BoundHashOperations from primitive to obj
2012-08-10 21:04:39 +03:00
Costin Leau
c9ea16bee6 clarify collection behavior with pipelined connection
REDIS-100
2012-08-09 13:46:58 +03:00
Jon Brisbin
3acfd81b7d DATAREDIS-77 Fix for not passing the message channel to message listeners. 2012-07-19 13:38:24 -05:00
bm3780
62d0383098 prefix should use delimiter specified from constructor if possible, otherwise default to using a colon as the delimiter 2012-07-01 15:56:04 -03:00