Commit Graph

1588 Commits

Author SHA1 Message Date
Mark Paluch
f86edd5bbc Fix broken unit tests.
Closes #2720
2023-09-28 14:41:33 +02:00
Mark Paluch
6a51b3da24 Refine RedisSerializer implementations.
This commit polishes up method ordering, introduces Javadoc where missing and updates nullability annotations and argument names.

Closes #1097
2023-09-21 14:59:19 +02:00
Mark Paluch
7cef80e340 Prepare 3.1.4 (2023.0.4).
See #2686
2023-09-15 10:52:12 +02:00
Mark Paluch
d36dbdcd68 Remove changelog shipped with the binaries.
Closes #2131
2023-09-14 11:19:06 +02:00
John Blum
711832440f Polish enhanced switch statements.
See #2705
Original pull request: #2706
2023-09-11 16:52:31 -07:00
Junghoon Ban
e34872db50 Change switch statements to switch expressions.
Remove unused default branches.

Closes #2705
Original pull request: #2706
2023-09-11 16:50:51 -07:00
John Blum
c64b22b9d2 Polish for #2696.
Closes #2701
Original pull request: #2696
2023-09-06 17:15:10 -07:00
Mingyuan Wu
cf940ce639 Fix wrong asserted code in ConvertingCursor.
Pull Request: #2696
2023-09-06 16:53:07 -07:00
Junghoon Ban
518a07c328 Add missing anchor to reference docs.
Closes #2700
2023-09-06 14:15:21 +02:00
Mark Paluch
d689fcee53 Prepare 3.1.3 (2023.0.3).
See #2642
2023-08-18 14:03:49 +02:00
Mark Paluch
98707a8318 Polishing.
Replace qualified class name access of inner classes with simple names and imports.

Remove Java 8 guards. Extend supported temporal types in Jsr310Converters. Remove superfluous converter annotations.

Simplify tests.

See #2677
Original pull request: #2681
2023-08-17 09:15:02 +02:00
John Blum
d89641e3a0 Register Converters for Offset java.time types in JSR310Converters.
We now appropriately handle OffsetDateTime and OffsetTime the same as all other java.time types, supported as simple types on Spring application (persistent) entity classes.

Closes #2677
2023-08-17 09:00:09 +02:00
Mark Paluch
2b9b8c2c9b Polishing.
Use Regex to capture the various styles of CLUSTER NODES endpoint representations.

See #2678
Original pull request: #2679
2023-08-16 11:54:23 +02:00
Sorokin Evgeniy
0e0f34a4a4 Add support for bracket-less IPv6 addresses to CLUSTER NODES Converter.
Closes #2678
Original pull request: #2679
2023-08-16 11:54:22 +02:00
Mark Paluch
05ae96f88d Polishing.
Tweak wording around thread-safety. Include notices in connection factories.

Reformat asciidoc.

See #2653
Original pull request: #2667
2023-08-10 11:10:08 +02:00
John Blum
91affcb77a Edit ref docs and Javadoc for connection classes to clearly state the Thread-safety guarantees.
Closes #2653
Original pull request: #2667
2023-08-10 11:09:50 +02:00
Mark Paluch
49abd4efd6 Polishing.
Replace topic label with assertion message. Reorder methods to align with Spring style.

See #2662
Original pull request: #2663
2023-08-08 10:28:08 +02:00
John Blum
1ddfd4d69b Simplify logic in RedisMessageListenerContainer and supporting classes.
Closes #2662
Original pull request: #2663
2023-08-08 10:28:08 +02:00
John Blum
e05df75c01 Fix spelling in SynchronizingMessageListener.SubscriptionSynchronizion.
Additionally, cleanup compiler warnings.

Closes #2656
Original pull request: #2657
2023-08-08 09:43:33 +02:00
Mark Paluch
b939613edb Polishing.
Use createMono/createFlux syntax instead of using the template for wrapper creation.

See #2658
Original pull request: #2659
2023-08-07 15:52:18 +02:00
John Blum
c7ded601ef Rename Function Lambda parameter to match command interface in (Default) ReactiveXxxOperations.
Cleanup compiler warning.

Fix unnatural line breaks.

Closes #2658
Original pull request: #2659
2023-08-07 15:52:18 +02:00
John Blum
6769b4b4f7 Polish for RedisSerializationContext.
Closes #2651
Original pull request: #2652
2023-07-27 15:49:18 -07:00
zhoukq
31bdc36aba Assign 'tuple' to 'stringTuple' in DefaultRedisSerializationContextBuilder.string().
Currently, the builder method incorrectly assigns 'tuple' SerializationPair<String> argument to 'hashValueTuple'.

Closes #2651
Original pull request: #2652
2023-07-27 15:48:45 -07:00
Mark Paluch
2d16225462 Polishing.
Make fields final where possible. Reintroduce end of line comment markers to avoid reformatting into unreadable format. Replace HashSet per command instance with String to reduce memory footprint.

Tweak Javadoc wording to represent what we actually expect. Reorder methods.

See #2640
Original pull request: #2644
2023-07-18 10:52:47 +02:00
John Blum
5a52c9c295 Polishing.
Additionally, applied Java 17 syntax, cleaned up compiler warnings, and edited Javadoc.

Closes #2644
Original pull request: #2640
2023-07-18 09:53:43 +02:00
Thach Le
f4d5711efd Fix misordered 'final static' modifiers.
Per the Java Language Specification (Java 17; https://docs.oracle.com/javase/specs/jls/se17/html/jls-8.html#jls-8.3.1), 'static' should appear before 'final'.

This is also consistent with source code analysis tools, like Checkstyle, rules: https://checkstyle.sourceforge.io/apidocs/com/puppycrawl/tools/checkstyle/checks/modifier/ModifierOrderCheck.html.

Original pull request: #2640
2023-07-18 09:53:42 +02:00
Mark Paluch
bbb8e0b269 Prepare 3.1.2 (2023.0.2).
See #2615
2023-07-14 13:52:54 +02:00
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