1577 Commits

Author SHA1 Message Date
Mark Paluch
73acc6f95f Extend license header copyright years to 2024.
See #2818
2024-01-02 09:24:14 +01:00
Mark Paluch
6c7e227389 Prepare 3.0.12 (2022.0.12).
See #2735
2023-11-17 10:57:00 +01:00
John Blum
f8c699beb5 Safely add and register the MessageListener to Topic mapping.
Given addListener(:MessageListener, :Collection<Topic>) could be called concurrently from the addMessageListener(:MessageListener, Collection<Topic>) method by multiple Threads, and the RedisMessageListenerContainer Javadoc specifically states that it is safe to call the addMessageListener(..) method conurrently without any external synchronization, and the registeration (or mapping) of listener to Topics is a componund action, then a race condition is possible.

Closes #2755
2023-10-23 13:06:26 -07:00
Mark Paluch
75095580db Prepare 3.0.11 (2022.0.11).
See #2710
2023-10-13 11:41:28 +02:00
Christoph Strobl
64c6dfd666 Update native-image runtime hints.
Closes: #2729
2023-10-13 07:57:13 +02:00
Mark Paluch
bb1d129b40 Correctly apply Reactive zadd NX/XX command flags.
We now correctly apply if exists/if not exists constraints on the reactive zadd command.

Previously, we only considered upsert which wasn't sufficient to apply xx/nx.

Closes #2731
2023-10-12 10:03:58 +02:00
Mark Paluch
3997da8d47 Disable tests that we cannot fix currently.
See #2720
2023-09-28 14:58:54 +02:00
Mark Paluch
a1715dc0a9 Fix broken unit tests.
Closes #2720
2023-09-28 14:41:37 +02:00
Mark Paluch
060e3fdc76 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:16 +02:00
Mark Paluch
d285d7f958 Prepare 3.0.10 (2022.0.10).
See #2684
2023-09-15 10:17:31 +02:00
Mark Paluch
b807734964 Remove changelog shipped with the binaries.
Closes #2131
2023-09-14 11:19:11 +02:00
John Blum
a95c5ab797 Polish enhanced switch statements.
See #2705
Original pull request: #2706
2023-09-11 17:12:27 -07:00
Junghoon Ban
a04988d219 Change switch statements to switch expressions.
Remove unused default branches.

Closes #2705
Original pull request: #2706
2023-09-11 17:12:21 -07:00
John Blum
bbfe990f77 Polish for #2696.
Closes #2701
Original pull request: #2696
2023-09-06 17:14:28 -07:00
Mingyuan Wu
f066d6bac9 Fix wrong asserted code in ConvertingCursor.
Pull Request: #2696
2023-09-06 16:58:01 -07:00
Junghoon Ban
9762c51fff Add missing anchor to reference docs.
Closes #2700
2023-09-06 14:15:27 +02:00
Mark Paluch
15845ec064 Prepare 3.0.9 (2022.0.9).
See #2639
2023-08-18 10:42:57 +02:00
Mark Paluch
7fa03a1369 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:13:57 +02:00
John Blum
eadd3f010c 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 08:59:24 +02:00
Mark Paluch
3d6dacccdb Polishing.
Use Regex to capture the various styles of CLUSTER NODES endpoint representations.

See #2678
Original pull request: #2679
2023-08-16 11:56:26 +02:00
Sorokin Evgeniy
020ef9ce1b Add support for bracket-less IPv6 addresses to CLUSTER NODES Converter.
Closes #2678
Original pull request: #2679
2023-08-16 11:55:08 +02:00
Mark Paluch
7d306edc49 Polishing.
Tweak wording around thread-safety. Include notices in connection factories.

Reformat asciidoc.

See #2653
Original pull request: #2667
2023-08-10 11:10:19 +02:00
John Blum
48b765d397 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:10:19 +02:00
John Blum
6beae16e5e Fix spelling in SynchronizingMessageListener.SubscriptionSynchronizion.
Additionally, cleanup compiler warnings.

Closes #2656
Original pull request: #2657
2023-08-08 09:43:40 +02:00
John Blum
42f21841eb Polish for RedisSerializationContext.
Closes #2651
Original pull request: #2652
2023-07-27 16:49:31 -07:00
zhoukq
675c617e74 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 16:49:25 -07:00
Mark Paluch
fb093bbe70 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:29 +02:00
John Blum
b26107d225 Polishing.
Additionally, applied Java 17 syntax, cleaned up compiler warnings, and edited Javadoc.

Closes #2644
Original pull request: #2640
2023-07-18 09:53:55 +02:00
Thach Le
7caa46cb4b 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:55 +02:00
Mark Paluch
56860cb259 Prepare 3.0.8 (2022.0.8).
See #2614
2023-07-14 11:22:24 +02:00
Mark Paluch
d71e5233b6 Prepare 3.0.7 (2022.0.7).
See #2578
2023-06-16 15:39:31 +02:00
Mark Paluch
1ad01d4dc1 Fix ZAddArgs.isEmpty.
isEmpty now returns true if empty. Previously, the boolean returns were flipped.

Closes #2588
2023-06-07 11:35:48 +02:00
Mark Paluch
293de67cb1 Use snapshot and milestone repositories instead of libs-snapshot and libs-milestone.
Closes #2595
2023-06-06 10:53:27 +02:00
Mark Paluch
68833df7a4 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:23 +02:00
John Blum
1dc49052b3 Edit and cleanup Javadoc.
Resolves #2586
2023-05-23 09:02:34 -07:00
John Blum
418121f087 Polish.
Additionally, refactors and cleans up the Redis cache extension and infrastructure.

Closes #2583
2023-05-18 17:32:11 -07:00
Yanming Zhou
8126924595 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:32:06 -07:00
Christoph Strobl
7274d6f5f7 Prepare 3.0.6 (2022.0.6).
See #2555
2023-05-12 11:07:48 +02:00
Mark Paluch
ad000b90e7 Polishing.
Widen test assertions to avoid double rounding errors failing the test.

See #2575
2023-05-11 11:20:01 +02:00
Mark Paluch
e437c3d0ea Make LettuceObservationContext public to use it with Observation Predicates.
Close #2550
2023-05-09 15:13:28 +02:00
Mark Paluch
36c08ae9e9 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:10:50 +02:00
Mark Paluch
23443692c7 Polishing.
Delegate RedisClientProvider.getClient() across connection providers. Use SimpleAsyncTaskExecutor as default in ClusterCommandExecutor to avoid ThreadPoolTaskExecutor pollution.

See #2575
2023-05-09 15:10:49 +02:00
John Blum
e973a50184 Fix element ordering issue on a mapped de/serialized entity having List property.
Closes #2565
2023-05-07 12:02:05 -07:00
Wonchul Heo
3ff873e51b Fix typo.
Original pull request #2567
2023-05-03 10:49:35 +02:00
Mark Paluch
c5e389f8be Fix BoundingBox.width return value.
We now return the correct value.

Closes #2526
2023-04-24 14:46:02 +02:00
remeio
b05ab5c4c2 Tweak Javadoc wording of mergeArrays.
Closes #2558
2023-04-24 14:12:26 +02:00
Greg L. Turnquist
eaf8208341 Prepare 3.0.5 (2022.0.5).
See #2530
2023-04-14 10:18:34 -05:00
Alexander Münch
e7a2dd1104 Fix Javadoc in RedisCacheConfiguration.
The prefixCacheNameWith() method returns a new instance, not `this`.

Closes #2539
2023-04-03 07:53:44 -07:00
Mark Paluch
0067cabe6c Adopt to Mockito 5.1 changes.
Closes #2504
2023-03-30 10:49:27 +02:00
1993heqiang
b5fda56aaf Format example code in 'Publishing (Sending Messages)' section of ref doc.
Closed #2533
2023-03-28 17:19:20 -07:00