1185 Commits

Author SHA1 Message Date
Oliver Gierke
3c78b9c027 DATAREDIS-484 - Updated changelog. 2016-04-06 18:44:39 +02:00
Oliver Gierke
03ea37fec3 DATAREDIS-475 - Updated changelog. 2016-03-18 13:19:28 +01:00
Christoph Strobl
9377970e2e DATAREDIS-460 - Remove .project file. 2016-02-23 21:49:41 +01:00
Christoph Strobl
8fc39e8534 DATAREDIS-419 - Remove Gradle build files. Activate Maven build.
Remove Gradle related build files and update version in Maven pom.xml to reflect current development iteration.

Original pull request: #167.
2016-02-23 21:49:09 +01:00
Christoph Strobl
d72e8193b7 DATAREDIS-419 - Move project build to Maven.
- Introduce Maven pom.xml.
- Moved Asciidoctor files to src/main/asciidoc.
- Moved notice.txt etc. to src/main/resources.
- Add logback.xml
- Update Makefile to use maven and pick build profiles.
- Update template.mf to pick up versions in pom.xml
- Add build matrix for spring versions to .travis.yml
- Use container based travis infrastructure.
- Update readme.

Original pull request: #167.
2016-02-23 21:47:26 +01:00
Oliver Gierke
1049bc3b5f DATAREDIS-459 - Updated changelog. 2016-02-23 14:37:18 +01:00
Christoph Strobl
e2266b91ce DATAREDIS-448 - Fix DefaultSetOperations.intersectAndStore not returning command result.
We now properly return the number of elements in the destination set, has always been null so far, for DefaultSetOperations.intersectAndStore.
2016-01-28 08:05:01 +01:00
Oliver Gierke
50971ac90a DATAREDIS-441 - Updated changelog. 2015-12-18 10:58:06 +01:00
Oliver Gierke
2fba7ca3c5 DATAREDIS-436 - Updated changelog. 2015-11-16 08:56:05 +01:00
Christoph Strobl
b5f0fcde99 DATAREDIS-435 - Fix potential NPE in RedisTestProfileValueSource. 2015-10-27 09:22:56 +01:00
欧夺标
b2dd94d994 DATAREDIS-417 - Fix ScanCursor throwing NoSuchElementException for empty scan result.
ScanCursor now retriggers SCAN command for results having a new cursorId but no actual values. This avoids NoSuchElementException for server calls like:

    scan 0 match key*9
      1) 1966080
      2) (empty list or set)

Original Pull Request: #154
CLA Number: 143520151016081625 (Duobiao Ou)
2015-10-16 12:59:19 +02:00
Christoph Strobl
473061cccc DATAREDIS-417 - Add failing tests for ScanCursor throwing NoSuchElementException.
Add failing tests for scanning key sets where Redis returns a scan iteration pointing to the next cursor but having no actual values itself like in:

    scan 0 match key*9
      1) 1966080
      2) (empty list or set)

Additionally fixing potential ArrayOutOfBoundException when reading scan result from lettuce driver.
2015-10-16 12:58:26 +02:00
Oliver Gierke
45d08aeafb DATAREDIS-434 - Updated changelog. 2015-10-14 14:00:02 +02:00
Oliver Gierke
851e81a4e3 DATAREDIS-429 - Updated changelog. 2015-09-01 12:31:06 +02:00
Christoph Strobl
c1d8832c6d DATAREDIS-421 - Fix NPE when using HashMapper implementations.
We now make sure the available HashMapper implementations avoid exposing null values. Prior to this null values would have been added to the converted Hash causing trouble when saving those to redis since hashes are expected to not contain any null values
2015-08-31 14:20:13 +02:00
Christoph Strobl
1ec8a80164 DATAREDIS-392 - Add Gerneric Jackson2 RedisSerializer.
We introduced GenericJackson2JsonRedisSerializer holding a preconfigured ObjectMapper which writes Class type informations into the JSON structure. This enables polymorphic deserialization and allows RedisCache manager to operate upon a RedisTemplate storing data in JSON format, which had until this only been possible using the Jdk Serializer.
2015-08-31 14:10:05 +02:00
Oliver Gierke
323effcc43 DATAREDIS-420 - Updated changelog. 2015-08-04 14:52:33 +02:00
Oliver Gierke
536b5d36ef DATAREDIS-418 - After release cleanups. 2015-07-28 16:28:37 +02:00
Spring Buildmaster
3b7e422b10 DATAREDIS-418 - Prepare next development iteration. 2015-07-28 06:56:25 -07:00
Spring Buildmaster
d06a7a513d DATAREDIS-418 - Release version 1.5.2.RELEASE (Fowler SR2). 2015-07-28 06:56:23 -07:00
Oliver Gierke
c21c86da8b DATAREDIS-418 - Prepare 1.5.2.RELEASE (Fowler SR2). 2015-07-28 15:29:47 +02:00
Oliver Gierke
d30794e246 DATAREDIS-418 - Updated changelog. 2015-07-28 14:52:45 +02:00
Christoph Strobl
398af94f76 DATAREDIS-414 - Serialization now occurs after pooled connection was released.
Moved key serialization and value deserialization outside of callback so that pooled connections get released more quickly.

Original pull request: #153.
2015-07-28 14:33:11 +02:00
Christoph Strobl
808c3efc36 DATAREDIS-416 - RedisCache.putIfAbsent(…) now returns null for first addition.
We now return null for RedisCache.putIfAbesent(…) when value is set to meet the contract defined by org.springframework.cache.Cache.putIfAbsent(…).

Original pull request: #150.
2015-07-28 13:42:29 +02:00
Christoph Strobl
41a3e9b382 DATAREDIS-412 - Assert compatibility with Jedis 2.7.1, 2.7.2 and 2.7.3.
Bump Jedis version and fix SendCommand class type differences between versions.

We now also lazily init the transaction on first call of multi() since pre initialization causes issues releasing Jedis connections and returning them to pool.

Original pull request: #149.
Related ticket: #139.
2015-07-22 14:47:23 +02:00
Oliver Gierke
0bb488a813 DATAREDIS-408 - Updated changelog. 2015-07-01 10:04:10 +02:00
Oliver Gierke
f8ac0f1233 DATAREDIS-409 - Updated changelog. 2015-07-01 10:04:02 +02:00
Oliver Gierke
72a638debd DATAREDIS-410 - After release cleanups. 2015-06-30 14:31:28 +02:00
Spring Buildmaster
96b00db34b DATAREDIS-410 - Prepare next development iteration. 2015-06-30 04:24:50 -07:00
Spring Buildmaster
963406b6f9 DATAREDIS-410 - Release version 1.5.1.RELEASE (Fowler SR1). 2015-06-30 04:24:46 -07:00
Oliver Gierke
f490894504 DATAREDIS-410 - Prepare 1.5.1.RELEASE (Fowler SR1). 2015-06-30 12:51:09 +02:00
Oliver Gierke
0cd6acf6ed DATAREDIS-410 - Updated changelog. 2015-06-30 12:31:48 +02:00
Oliver Gierke
0d9b2ef964 DATAREDIS-400 - Updated changelog. 2015-06-30 12:05:57 +02:00
Christoph Strobl
ed6359392d DATAREDIS-402 - RedisCache should not expire known keys in case ttl of element is not set.
We now skip defining expire on known keys set in case element is eternal.

Original pull request: #141.
2015-06-16 09:51:23 +02:00
Oliver Gierke
0305a9fdec DATAREDIS-403 - Fixed configuration of JavaDoc task.
We now depend on the task that extracts shared resources and use the CSS provided with that.
2015-06-02 15:57:55 +02:00
Thomas Darimont
4d9b71dcc2 DATAREDIS-332 - @Transactional operation should use the same connection.
We only unbind the current redisConnectionFactory from the current thread if the transaction is not active anymore.
Previously we performed the unbinding in RedisTemplate.execute(RedisCallback, boolean, boolean) overtime which lead to the fact that the next redis operation within the same transaction used a different redis connection, which could lead to exhaustion of the connection pool.
We also ensure that we correctly unbind the RedisConnectionFactory resource from the TransactionSynchronizationManager on transaction completion in RedisTransactionSynchronizer.afterCompletion(int).
Added test case supplied from issue.

Original pull request: #134.
2015-04-13 13:29:31 +02:00
Spring Buildmaster
bcc6037e77 DATAREDIS-385 - Prepare next development iteration. 2015-04-13 13:23:24 +02:00
Spring Buildmaster
13d4753688 DATAREDIS-385 - Release version 1.5.0.RELEASE. 2015-03-23 05:46:24 -07:00
Oliver Gierke
f91458870b DATAREDIS-385 - Prepare 1.5.0.RELEASE (Fowler GA).
A few dependency upgrades to be in sync with all other Spring Data modules.
2015-03-23 12:44:56 +01:00
Oliver Gierke
2b1b01c593 DATAREDIS-385 - Updated changelog. 2015-03-23 12:04:11 +01:00
Thomas Darimont
c47292d173 DATAREDIS-374 - Adapt JedisConnectionFactory for changes in Jedis 2.7.
We now support both Jedis 2.6.2 (current release) as well as the upcoming 2.7 version. Therefore we call the in 2.7 renamed `getTimeout` / `setTimeout` Methods on `JedisShardInfo` via reflection to read/set `soTimeout`.

Since there’s no change in r.c.j.JedisFactory that would allow to individually configure connection and socket timeout, we use the socketTimeout of `JedisShardInfo`. This will cause `r.c.j.JedisFactory` to use the socket timeout for the connection as well, which is the same behavior as in 2.6.2.

Tested against Jedis 2.7 branch with Redis 3.0.0.RC4.

Original Pull Request: #127
2015-03-19 11:41:57 +01:00
Thomas Darimont
8bf624b1bb DATAREDIS-384 - Remove Java6 build for Travis-CI.
The only reason why the travis-ci build for SD Redis fails is because it still tries to build with java 6 which isn't supported by the asciidoctor gradle plugin.
2015-03-18 13:28:19 +01:00
Stephane Nicoll
d0a0a6a78b DATAREDIS-383 - Improve JavaDoc of RedisCacheManager.
Extended description on setCacheNames(..).

Original pull request: #132.
2015-03-18 13:10:10 +01:00
Christoph Strobl
738f41b169 DATAREDIS-379 - Update reference documentation.
- Added new-features section.
- Update command matrix.
- Updated Sentinel config and template section.

Original pull request: #130.
2015-03-16 13:43:35 +01:00
Thomas Darimont
45a0c95c82 DATAREDIS-380 - Use Redis 2.8.19 for tests.
Updated redis version.

Original Pull Request: #131
2015-03-11 15:02:34 +01:00
Oliver Gierke
d869cf8015 DATAREDIS-377 - After release cleanups. 2015-03-11 14:03:59 +01:00
Spring Buildmaster
1797a1f6a1 DATAREDIS-377 - Prepare next development iteration. 2015-03-11 14:03:52 +01:00
Spring Buildmaster
b4b94645db DATAREDIS-377 - Release version 1.5.0.RC1. 2015-03-05 08:18:03 -08:00
Oliver Gierke
5c2f22aaad DATAREDIS-377 - Prepare 1.5.0.RC1 (Fowler RC1). 2015-03-05 16:33:27 +01:00
Oliver Gierke
4af3351399 DATAREDIS-377 - Updated changelog. 2015-03-05 15:54:40 +01:00