Commit Graph

3034 Commits

Author SHA1 Message Date
Mark Paluch
feb534f3e8 Introduce JedisClientConfigBuilderCustomizer to support client config customization.
We now support customization of Jedis' JedisClientConfig that is used for various client configurations for setting extended properties that Spring Data Redis doesn't configure itself.

Closes: #3007
Original Pull Request: #3014
2024-10-10 11:06:21 +02:00
Mark Paluch
cf42be1c42 Upgrade to Jedis 5.2.0.
Closes #3008
2024-10-10 09:04:32 +02:00
Mark Paluch
6d1e635470 Use Docker in Docker CI setup.
See #2994
2024-10-09 14:43:01 +02:00
Christoph Strobl
f82b399150 Polishing.
Move JsonParser creation to dedicated method.

Original Pull Request: #2999
2024-10-09 11:52:59 +02:00
Mark Paluch
8c74d78872 Support deserialization in GenericJackson2JsonRedisSerializer when using custom JsonFactory.
Closes: #2981
Original Pull Request: #2999
2024-10-09 11:17:09 +02:00
Mark Paluch
f2752d1b02 Polishing.
Update tests to simplify assertions and enhance GH issue references.
Simplify parsing logic for addressing edge cases and added more test scenarios.

See #2862
Original Pull Request: #3000
2024-09-19 14:39:19 +02:00
Marcin Grzejszczak
53709f0281 Improve Cluster Nodes parsing.
Without this fix there's a problem with parsing of the cluster nodes command output (e.g. a trailing comma after cport is making the parsing fail)

with this change we're converting regexp parsing to code parsing which also includes support for trailing commas after cport

Closes #2862
Original Pull Request: #3000
2024-09-19 14:39:19 +02:00
Mark Paluch
8906eb57bb Polishing.
Reword Javadoc comments for clarity and add missing `@SuppressWarnings` annotations.

See #2970
2024-09-17 14:54:55 +02:00
Mark Paluch
42b1764667 Return cached HashOperations instance from opsForHash.
Closes #2970
2024-09-17 14:54:23 +02:00
Mark Paluch
7dd8b8ed5d Polishing.
Add missing Nullable annotations. Reorder methods.

See: #2996
Original pull request: #2997
2024-09-17 14:22:14 +02:00
jinbeom
078f6baaa0 Remove duplicate code in DefaultRedisList.
Closes: #2996
Original pull request: #2997
2024-09-17 14:21:04 +02:00
Jens Schauder
5a1c1ef992 After release cleanups.
See #2912
2024-09-13 12:42:28 +02:00
Jens Schauder
55360bb6de Prepare next development iteration.
See #2912
2024-09-13 12:42:27 +02:00
Jens Schauder
7e434ec318 Release version 3.4 M1 (2024.1.0).
See #2912
2024-09-13 12:39:33 +02:00
Jens Schauder
108bd781da Prepare 3.4 M1 (2024.1.0).
See #2912
2024-09-13 12:39:15 +02:00
Christoph Strobl
f2a1af6cbb Make sure db index is only set once.
See: #2984
2024-09-13 09:38:22 +02:00
Christoph Strobl
feda7dcf5b Polishing.
Make sure nested LettuceConnectionUnitTests are actually run by junit.

Original Pull Request: #2990
2024-09-12 13:49:52 +02:00
Mark Paluch
8777cf7fc6 Fix database selection on dedicated connection.
We now select the database on the dedicated connection. Previously, this call never happened on the dedicated connection and the only way a database could be selected is through the ConnectionFactory configuration.

Closes: #2984
Original Pull Request: #2990
2024-09-12 13:49:30 +02:00
Christoph Strobl
fd31e433c0 Polishing.
Move maxTime calculation for topology refresh to and delegate shouldUseCachedValue() to newly introduced overload.

Original Pull Request: #2989
2024-09-11 12:19:11 +02:00
Mark Paluch
1514461561 Use value object for topology caching.
We now use a value object for caching the topology to avoid races in updating the cache timestamp.

Also, we set the cache timestamp after obtaining the topology to avoid that I/O latency expires the topology cache.

Closes: #2986
Original Pull Request: #2989
2024-09-11 12:18:39 +02:00
Mark Paluch
297ee410dc Polishing.
Enable SCRIPT FLUSH and SCRIPT KILL for pipelining/transaction usage. Use lambdas where possible.

Original pull request: #2988
See #1455
2024-09-11 11:33:37 +02:00
Ivan Kripakov
b22f1ab84c Enable eval and evalsha in Jedis pipeline/transaction.
Original pull request: #2988
Closes #1455
2024-09-11 11:31:40 +02:00
Mark Paluch
9c5f21b840 Polishing.
Simplify code to use well-known Spring patterns.

Original pull request: #2752
See #2751
2024-09-10 14:03:02 +02:00
John Blum
44aa79e2b2 Replace use of String.format(…) with formatted Strings.
Original pull request: #2752
Closes #2751
2024-09-10 14:03:01 +02:00
Mark Paluch
6eac1d1ad0 Polishing.
Refine assertions usage.

Original pull request: #2985
Closes #2982
2024-09-10 11:02:06 +02:00
jinkshower
b7f26fa30f Fix XAddOptions maxlen handling and XPendingOptions validation.
Closes #2982
Original pull request: #2985
2024-09-10 11:01:36 +02:00
Mark Paluch
15f541bf4c Polishing.
Improve pattern variable naming, use ClassUtils.getDescriptiveType(…) to avoid null-pointer exceptions. Simplify RedisOperationChain condition checks.

See #2788
2024-09-10 10:13:25 +02:00
Junghoon Ban
6190b3bff6 Improve readability in RedisQueryCreator.
Closes #2788
2024-09-10 10:13:25 +02:00
Junghoon Ban
803fd7101e Refactor Redis secondary-index key formatting.
Redis secondary-index keys are now formatted using helper methods instead of using chains of concatAll(toBytes(…)) sequences for more readability.

Original pull request: #2795
Closes: #2794
2024-09-10 09:35:14 +02:00
Christoph Strobl
0f45851190 Polishing.
Remove no longer needed wasLocked flag from CacheWriter.

Original Pull Request: #2948
2024-09-05 14:58:40 +02:00
Mark Paluch
49542eccee Apply time to idle in RedisCache.retrieve(…).
We now correctly apply time to idle on retrievals.

Original Pull Request: #2948
2024-09-05 14:57:28 +02:00
Mark Paluch
06bbd3dcab Use Redis locking for value retrieval synchronization.
We now use RedisCacheWriter to acquire and maintain the lock for value retrieval synchronization.

Closes: #2890
Original Pull Request: #2948
2024-09-05 14:56:59 +02:00
Mark Paluch
777f079114 Deprecate Micrometer Tracing code in favor of Lettuce's Micrometer support.
Closes #2561
2024-09-04 10:41:40 +02:00
Christoph Strobl
fb0f0bc07c Polishing.
Add new method to BoundStreamOperations and remove add accepting a Publisher.

Original Pull Request: #2936
2024-09-03 07:27:05 +02:00
jinkshower
486dc97623 Add overloads for StreamOperations add with additional XAddOptions.
Closes: #2915
Original Pull Request: #2936
2024-09-03 07:26:35 +02:00
Mark Paluch
bfa62bf31d Fix typos in Javadoc and assertion message.
Closes #2965
2024-08-30 14:09:44 +02:00
Christoph Strobl
bea01ef36c Fix error deserializing enum values with flattening Jackson2HashMapper.
This commit makes sure the mapper does not attempt to read type alias when deserializing enums.

Original pull request: #2980
Closes #2979
2024-08-30 09:57:33 +02:00
Christoph Strobl
5fb06655d9 Upgrade to Jedis 5.1.5.
Closes: #2976
2024-08-22 15:41:10 +02:00
Mark Paluch
9d716ff33a Update GitHub Actions.
See #2912
2024-08-21 09:28:22 +02:00
Mark Paluch
bd20c6d6f7 Polishing.
Add getFirst/getLast to Reactive and Bound Operations.

Simplify getLast implementation.

Reorder methods, tweak Javadoc, add since tags.

Original pull request: #2966
See #2937
2024-08-20 15:17:33 +02:00
Lee Jaeheon
a58bfd83c3 Add getFirst(K key) and getLast(K key) methods to ListOperations.
Original pull request: #2966
Closes #2937
2024-08-20 15:16:58 +02:00
Mark Paluch
e56e8c59b2 Add @Serial annotation to all serialVersionUID fields.
Closes #2973
2024-08-20 10:30:24 +02:00
Mark Paluch
3bc9423cd1 Polishing.
Replace instanceof check with pattern variable in production code.
Add missing Deprecated annotations.

See #2967
Original pull request: #2971
2024-08-20 10:25:14 +02:00
arefbehboudi
955b8918a4 Consistently use instanceof pattern variable.
Closes #2967
Original pull request: #2971
2024-08-20 10:23:44 +02:00
Mark Paluch
aab1f9b6b2 Upgrade to Lettuce 6.4.
Closes #2963
2024-08-12 08:38:11 +02:00
Mark Paluch
67fc8c4da4 Upgrade to Jedis 5.1.4.
Closes #2964
2024-08-12 08:38:11 +02:00
Christoph Strobl
af70648cb7 Add support for using custom BeanNameGenerator.
Closes: #2951
2024-08-09 10:40:30 +02:00
Mark Paluch
369b549b3c Default Lettuce shutdownQuietPeriod to zero.
Use a lower timeout for faster shutdown. Also, the quiet period is no longer configured through the shutdown timeout.

Closes #2945
2024-08-08 15:48:59 +02:00
Mark Paluch
ba2c9bae90 Polishing.
Remove verifyMode setters on LettuceConnectionFactory to not expose additional properties already exposed via ClientConfiguration.

Deprecate LettuceClientConfiguration.isVerifyPeer in favor of getVerifyMode.

See #2899
Original pull request: #2934
2024-08-08 15:32:54 +02:00
Zhian Chen
b41547e825 Replace Lettuce's verifyPeer with verifyMode.
Revert modifying type of VerifyMode for DefaultLettuceClientConfiguration constructor

Closes #2899
Original pull request: #2934
2024-08-08 15:32:54 +02:00