Commit Graph

1561 Commits

Author SHA1 Message Date
John Blum
e9a0588865 Prepare 3.1.1 (2023.0.1).
See #2579
2023-06-16 08:05:07 -07:00
John Blum
2b21d93133 Polish.
Pull request: #2525
2023-06-14 20:06:53 -07:00
daihuabin
1ed54212cc Use BitSet instead of LinkedHashSet to improve the performance of SlotRange construction.
Pull request: #2525
2023-06-14 20:06:45 -07:00
John Blum
17820d1d52 Allow users to customize the internal ObjectMapper created by GenericJackson2JsonRedisSerializer.
We now allow the internally created Jackson ObjectMapper to be customized and further configured after construction of the GenericJackson2JsonRedisSerializer when a user does not explicitly provide a custom ObjectMapper during construction. Even when providing a custom ObjectMapper, not all configuration applied by the GenericJackson2JsonRedisSerialzier (such as (standard) type resolution) to the internal ObjectMapper would get applied to the user-provided ObjectMapper as well.

Closes #2601
2023-06-14 13:53:17 -07:00
John Blum
46279d8bea Fix missing/misplacement of <p> tag in Jackson2HashMapper Javadoc.
Resolves #2586
2023-06-14 10:11:51 -07:00
John Blum
a1f4876331 Polish.
* Cleanup source code in Jackson2HashMapper; Edit Javadoc.
* Add test cases for the un/flattened mapping of an Object with a timestamp (LocalDateTime) as provided by the user in Issue #2593.

Closes #2593
2023-06-12 13:42:20 -07:00
Christoph Strobl
c54fb75a63 Fix Jackson (hash) mapping for BigDecimal/BigInteger scalar values and Java Time types.
Once again, the SD Redis Jackson2HashMapper can now de/serialize Objects with BigDecimal/BigInteger values along with java.time types, such as java.time.LocalDateTime.

Additionally, splits the unit tests for flattening and unflattening of the hash mapping into 2 separate test classes to be picked up in the SD Redis test suite.

Resolves #2593
2023-06-12 13:42:13 -07:00
Mark Paluch
ab72d44924 Polishing.
Reformat code. Fix typo.

See #2591
Original pull request: #2592
2023-06-08 09:07:22 +02:00
Yanming Zhou
a9e439c332 Construct LettuceObservationContext with parent observation
After this commit, LettuceObservationContext.setParentObservation() is called right after Context rather than Observation created, then Context.getParentObservation() could be used in ObservationPredicate to determine whether Observation should be created.

Fixes #2591
Original pull request: #2592
2023-06-08 09:07:21 +02:00
Mark Paluch
f237016517 Fix ZAddArgs.isEmpty.
isEmpty now returns true if empty. Previously, the boolean returns were flipped.

Closes #2588
2023-06-07 11:35:44 +02:00
Mark Paluch
26721ad37c Use snapshot and milestone repositories instead of libs-snapshot and libs-milestone.
Closes #2595
2023-06-06 10:53:23 +02:00
Mark Paluch
b58d795418 Use OBJECT, PTTL, and RESTORE JedisCluster methods directly.
We now use directly JedisCluster methods instead of using our command executor routing as JedisCluster exposes the methods and we no longer require our own command routing.

Closes #2589
2023-05-30 11:55:16 +02:00
John Blum
ca1fc3043a Edit and cleanup Javadoc.
Resolves #2586
2023-05-23 08:56:13 -07:00
John Blum
554e829783 Polish.
Additionally, refactors and cleans up the Redis cache extension and infrastructure.

Closes #2583
2023-05-18 17:26:08 -07:00
Yanming Zhou
6437b812d1 Improve RedisCacheManagerBuilder to expose applied RedisCacheConfiguration.
Now it is possible to construct a new, custom default RedisCacheConfiguration from an existing, default RedisCacheConfiguration.

This is useful in a Spring Boot context using the RedisCacheManagerBuilderCustomizer and acquiring access to the default RedisCacheConfiguration, which likely originated from Spring Boot Redis CacheProperties.

Resolves #2583
2023-05-18 17:25:57 -07:00
Christoph Strobl
5b65e1ee5f Prepare 3.1 GA (2023.0.0).
See #2559
2023-05-12 14:14:08 +02:00
Mark Paluch
ed2c9c1ecc Polishing.
Widen test assertions to avoid double rounding errors failing the test.

See #2575
2023-05-11 11:19:46 +02:00
Mark Paluch
5e8f73a00a Make LettuceObservationContext public to use it with Observation Predicates.
Close #2550
2023-05-09 15:13:33 +02:00
Mark Paluch
5e2b668dcc Refactor Lettuce connection handling in integration tests.
Reuse condition objects in command and version condition extensions.

Shut down ClientResources via ShutdownQueue and ensure shared client resources usage.

Add close support to our MethodArgumentsProvider. Reuse LettuceTestClientConfiguration for test client config settings.

Closes #2575
2023-05-09 15:07:08 +02:00
Mark Paluch
8c9af9d46a Polishing.
Delegate RedisClientProvider.getClient() across connection providers. Use SimpleAsyncTaskExecutor as default in ClusterCommandExecutor to avoid ThreadPoolTaskExecutor pollution.

See #2575
2023-05-09 15:04:51 +02:00
Mark Paluch
aadfae62a4 Pass Page.size() to GEORADIUS COUNT.
We now reuse the page size to initially limit Geo results within Redis.

Closes #1242
2023-05-08 14:11:02 +02:00
John Blum
a147385431 Fix element ordering issue on a mapped de/serialized entity having List property.
Closes #2565
2023-05-07 11:49:18 -07:00
Wonchul Heo
c7f51a2073 Fix typo.
Original pull request #2567
2023-05-03 10:48:18 +02:00
Mark Paluch
56c633c3a9 Fix BoundingBox.width return value.
We now return the correct value.

Closes #2526
2023-04-24 14:45:55 +02:00
remeio
2692aafc63 Tweak Javadoc wording of mergeArrays.
Closes #2558
2023-04-24 14:11:56 +02:00
Greg L. Turnquist
3a0759dbbd Prepare 3.1 RC1 (2023.0.0).
See #2531
2023-04-14 11:53:23 -05:00
Alexander Münch
6316609fbf Fix Javadoc in RedisCacheConfiguration.
The prefixCacheNameWith() method returns a new instance, not `this`.

Closes #2539
2023-04-03 07:41:58 -07:00
1993heqiang
5a39b3564e Format example code in 'Publishing (Sending Messages)' section of ref doc.
Closed #2533
2023-03-28 17:11:39 -07:00
Christoph Strobl
4b685496ae Prepare 3.1 M3 (2023.0.0).
See #2510
2023-03-20 15:01:20 +01:00
Mark Paluch
81f896693f Fix documentation for MessageListenerAdapter Java config.
Closes #2524
2023-03-14 08:55:24 +01:00
John Blum
7e1746cc2a Polish.
Closes #2466

See #2465
2023-03-02 19:13:08 -08:00
Marcin Zielinski
992905360b Add support for XCLAIM in StreamOperations
Closes #2465
2023-03-02 19:13:02 -08:00
Christoph Strobl
b3bb66740a Prepare 3.1 M2 (2023.0.0).
See #2509
2023-02-17 14:22:17 +01:00
Christoph Strobl
5ab35e86f5 Prepare 3.1 M1 (2023.0.0).
See #2462
2023-02-17 13:27:10 +01:00
Mark Paluch
c8c0239e9b Broken links in reference documentation.
Closes #2499
2023-02-15 11:05:31 +01:00
Mark Paluch
f17773dfe4 Adopt to Mockito 5.1 changes.
Closes #2504
2023-02-14 10:49:48 +01:00
John Blum
9a0f5acd17 Add test case for Redis cluster configuration using IPv6 address.
See #2360.
2023-01-26 00:12:31 -08:00
John Blum
149037d5d5 Replace TODO comment with Issue ticket changing RedisAccessor to abstract.
See #2494
See #2493
2023-01-24 09:42:18 -08:00
John Blum
b958756d15 Annotate indexOf(..) and lastIndexOf(..) ListOperations with @Nullable.
Closes #2488
2023-01-19 16:58:53 -08:00
John Blum
e4c4c7e040 Refactor RedisAccessor.
* Annotate API with missing Spring @NonNull and @Nullable annotations.
* Redefine afterPropertiesSet() in terms of getRequiredConnectionFactory().
* Edit Javadoc.

Closes #2493
2023-01-19 16:15:45 -08:00
Christoph Strobl
3d5eb4b563 Update links in reference documentation.
Remove outdated links an make sure to use the springDocsUrl attribute provided via spring-projects/spring-data-build#1895 to resolve links to framework documentation.

Closes: #2490
2023-01-18 14:49:44 +01:00
Mark Paluch
e9e2c53d78 Incorporate review feedback.
Reduce object instantiations.

Original Pull Request: #2467
2023-01-13 07:45:20 +01:00
Mark Paluch
230c764c69 Track subscriptions and unsubscriptions in LettuceReactiveRedisConnection.
We now track subscriptions and unsubscriptions in the reactive API to ensure that we do not prematurely unsubscribe from a channel or pattern if the topic was subscribed multiple times.

Original Pull Request: #2467
2023-01-13 07:44:46 +01:00
Mark Paluch
7b6a697265 Fix ReactiveRedisMessageListenerContainer disposal via ReactiveRedisTemplate.listenToLater(…).
We now properly dispose the container at the right time and not as result of the Mono<…> completion.

Closes: #2386
Original Pull Request: #2467
2023-01-13 07:43:37 +01:00
Mark Paluch
716640b7a8 Add output hints for HSTRLEN, XLEN, and XTRIM.
See #2473

Original pull request: #2482
2023-01-11 12:38:21 -08:00
Mark Paluch
ea37a7347a Use correct output for ZCARD command using LettuceConnection.execute(…).
We now provide a type hint for the ZCARD command.

Closes #2473

Original pull request: #2482
2023-01-11 12:37:58 -08:00
Mark Paluch
1c3bd4f02b Extend license header copyright years to 2023.
See #2476
2023-01-02 11:10:37 +01:00
Mark Paluch
fb11f314fc Add assertions to fail early on absent values using StreamMessageListenerContainer.
Closes #2472
2023-01-02 11:10:10 +01:00
Mark Paluch
d9b6d4d395 Extend license header copyright years to 2023.
See #2476
2023-01-02 09:53:38 +01:00
Mark Paluch
cafa3c7a86 Align with KeyValue KeySpaceResolver changes.
We now use the KeyValue KeySpaceResolver to primarily detect the keyspace to be used instead of a fallback.

See #2457
See #2452
2022-12-07 11:14:36 +01:00