Commit Graph

2914 Commits

Author SHA1 Message Date
Mark Paluch
aa7045ab95 Remove redundant assertion from RedisTemplate.afterPropertiesSet(…).
Closes #2832
2024-01-19 09:35:32 +01:00
Mark Paluch
25a6981544 Polishing.
Reformat code.

See #2831
2024-01-18 11:01:27 +01:00
Mark Paluch
75e51f5b39 Deprecate LettuceConnectionFactory.setDatabase(…) in alignment with JedisConnectionFactory.setDatabase(…)
See #2831
2024-01-18 11:01:26 +01:00
Mark Paluch
707184f7e2 Update deprecation description of JedisConnectionFactory.setDatabase(…).
Mention database index instead of client name.

Closes #2831
2024-01-18 11:01:26 +01:00
谭九鼎
014634e94c Fix reference documentation for Stream ops usage.
Closes #2825
2024-01-11 14:46:28 +01:00
Mark Paluch
b6e4951345 Polishing.
Add missing property editors to inject requested operations.

See #2828
2024-01-11 14:46:27 +01:00
Mark Paluch
86b97e38e3 Fix documentation to use resource injection for RedisTemplate operations.
Closes #2828
2024-01-11 14:46:27 +01:00
Mark Paluch
0187f300bb Upgrade to Lettuce 6.3.1.
Closes #2826
2024-01-10 10:48:00 +01:00
谭九鼎
2369ae0f7e Update Jedis documentation to reflect supporting Redis Streams.
Closes #2824
2024-01-09 09:15:42 +01:00
李潇
356d9af003 Use correct distance unit for repository query method documentation.
Closes #2823
2024-01-08 08:58:08 +01:00
Mark Paluch
7f48b752eb Extend license header copyright years to 2024.
See #2821
2024-01-02 14:42:07 +01:00
Mark Paluch
2e29a999f8 Differentiate between initial exception handling, recovery and recovery after subscription.
We now differentiate exception handling regarding the recovery state. Initial listen fails if the connection is unavailable. Upon recovery after a preceeding subscription we now log the success to create a counterpart to our error logging.

Closes: #2782
Original Pull Request: #2808
2023-12-15 11:13:37 +01:00
hyeonzix
da44aa2d2d Update referencedocs url in README.
fix reference document link

See #2786
2023-12-14 08:54:00 +01:00
Mark Paluch
5495b80b4b Update CI properties.
See #2778
2023-12-14 08:50:32 +01:00
Mark Paluch
07dcad779c Upgrade to Maven Wrapper 3.9.6.
See #2805
2023-12-14 08:40:45 +01:00
Christoph Strobl
1c8cc73edc Polishing.
Delegate value loading to existing method to remove duplicate code paths.

Original Pull Request: #2785
2023-12-13 16:25:32 +01:00
Mark Paluch
a2af06d6fd Polishing.
Reformat code.

Original Pull Request: #2785
2023-12-13 16:25:18 +01:00
Mark Paluch
97e9a1d18b Expose ValueWrapper to differentiate between cached null values and absent cache mapping.
We now use ValueWrapper to differentiate in the async API between cache misses and cached null values.

Closes: #2783
Original Pull Request: #2785
2023-12-13 16:24:55 +01:00
Christoph Strobl
c19acb0b45 Add tests to verify symmetric usage of scan cursor id.
See: #2796
2023-12-13 14:49:12 +01:00
Mark Paluch
b9f2e4c509 Use Long.parseUnsignedLong/toUnsignedString for SCAN cursor id parsing.
Redis uses an unsigned 64bit value for its cursor id which is now captured via parseUnsignedLong.

Closes: #2796
2023-12-13 14:40:55 +01:00
Mark Paluch
966dc05704 Polishing.
Fix Javadoc reference.

See #2778
2023-12-13 09:10:29 +01:00
Mark Paluch
5a2a92a221 Remove duplicate keys from RedisQueryEngine.
We now avoid duplicate keys if a key is found in two indices.

Closes #2799
2023-12-11 10:31:09 +01:00
Junghoon Ban
3ad3874219 Refine getRequiredAdapter()usage in RedisQueryEngine.
We now use getRequiredAdapter() instead of getAdapter() to enforce either an object or a proper exception.

Closes #2800
Original pull request: #2801
2023-12-11 10:11:59 +01:00
Mark Paluch
bcf761f0f7 Accept empty config values in the Lettuce connection wrapper.
Closes #2798
2023-12-08 14:56:57 +01:00
Mark Paluch
a15d43f6b8 Adopt tests to Spring Data Commons changes.
Closes #2797
2023-12-08 11:44:41 +01:00
Mark Paluch
58c04a9360 Avoid race condition in tests.
See #2787
2023-11-30 09:39:05 +01:00
Mark Paluch
4a08f642bc Introduce property for Jenkins user and Artifactory server details.
Closes #2787
2023-11-27 09:22:30 +01:00
Junghoon Ban
ffc857e4fc Polishing.
Add missing comma in indexes.adoc. Refine generic map definition statements.

Closes #2784
2023-11-23 09:31:05 +01:00
Runbing
01c113520d Fixed the URL for the Spring Data Commons documentation.
I fixed an incorrect URL in the **antora.yml** file that was preventing other pages from linking to the Spring Data Commons documentation.

Closes #2779
2023-11-20 11:25:15 +01:00
John Blum
76cdf48afa Polishing.
Rename asString(:Object) to toString(:Object) for consistency with toBytes(..).

Original pull request: #2774
2023-11-17 15:05:09 -08:00
Junghoon Ban
482eab9224 Remove unnecessary method call in RedisKeyValueAdapter.
Closes #2774
2023-11-17 15:04:56 -08:00
Mark Paluch
1253b0d0b4 After release cleanups.
See #2737
2023-11-17 14:33:26 +01:00
Mark Paluch
6ee2a8951a Prepare next development iteration.
See #2737
2023-11-17 14:33:25 +01:00
Mark Paluch
81f119607b Release version 3.2 GA (2023.1.0).
See #2737
2023-11-17 14:29:59 +01:00
Mark Paluch
58a4a2da7e Prepare 3.2 GA (2023.1.0).
See #2737
2023-11-17 14:28:30 +01:00
Mark Paluch
7c197ce4fc Upgrade to Lettuce 6.3.
Closes #2728
2023-11-15 11:05:25 +01:00
Mark Paluch
9eadebd263 Update build from source section to reflect Makefile.
See #2766
2023-11-10 10:28:15 +01:00
Mark Paluch
1082d31517 Remove CI.adoc.
Remove outdated CI documentation as the docs are in our Jenkinsfile.

Closes #2767
2023-11-10 09:54:46 +01:00
Junghoon Ban
22a465a992 Polishing.
Use module identifier instead of constant.

Closes #2762
2023-11-06 10:55:28 +01:00
Mark Paluch
f97bd87d70 Upgrade to Jedis 5.0.2.
Closes #2763
2023-11-06 09:41:08 +01:00
Mark Paluch
37ecdc544c Upgrade to netty 4.1.100.Final.
See #2728
2023-11-01 09:28:57 +01:00
Mark Paluch
978af3b626 Build against Lettuce 6.3 snapshots.
See #2728
2023-11-01 09:28:56 +01:00
Mark Paluch
667dd27bb5 Polishing.
Tweak naming. Simplify converters by removing unused methods.

See #2754
2023-10-27 15:00:20 +02:00
Junghoon Ban
85e9ae50ff Use pattern matching instead of type casting.
Closes #2754
2023-10-27 15:00:14 +02:00
John Blum
f28bf61142 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 12:18:57 -07:00
Eric Haag
fc9f9d8e5c Connect build to ge.spring.io.
This change publishes a build scan to ge.spring.io for every local build from an authenticated Spring committer and for CI where appropriate access tokens are available. The build will not fail if publishing fails.

This change also allows the build to benefit from local and remote build caching, providing faster builds for all contributors.

Additionally, the project will have access to all features of Gradle Enterprise such as:

- Dashboards to view all historical build scans, along with performance trends over time
- Build failure analytics for enhanced investigation and diagnosis of build failures
- Test failure analytics to better understand trends and causes around slow, failing, and flaky tests

See #2732
2023-10-19 15:33:13 -05:00
Greg L. Turnquist
bf512d4677 Update CI properties.
See #2737
2023-10-19 09:38:56 -05:00
John Blum
f56989f9c1 Apply consistent Exception variable names to all catch blocks.
We now consistently align with the core Spring Framework's use of 'ex' as the variable name for Exceptions handled in catch blocks, and 'ignore' for all Exceptions thrown, but ignored by framework code. Both 'ex' and 'ignore' were appropriately used based on the context and nautre of the Exception handler in the catch block.

Additionally, we use the 'expected' variable name for Exception thrown in tests where the thrown Exception is the expected outcome of the test case.

Only 1 exception exists to these name conventions, and that is 'nested', which was necessarily used in ScanCursor due to the nested try-catch blocks.

Applied consistent use of String.format(..) to Exception messages requiring formatting.

Formatted catch block according to source code formatting style.

Closes #2748
Original pull request: #2749
2023-10-19 09:38:35 +02:00
John Blum
68f514bdd8 Refine initialization of the TypeResolver in GenericJackson2JsonRedisSerializer.
Closes #2750
2023-10-18 22:27:13 -07:00
John Blum
12f5fad1ba Cleanup equals(:Object) method and compiler warnings in RedisSentinelConfiguration.
Additionally:

* Annotates getMaster() with @Nullable.
* Fixes assertion messages for accuracy and consistency.
* Introduces white spacing for readability.

Closes #2747
2023-10-18 16:32:05 -07:00