Commit Graph

1795 Commits

Author SHA1 Message Date
Mark Paluch
10d73f1ce3 Polishing.
Reformat code.

See #3024
2025-02-10 11:43:41 +01:00
Mark Paluch
3edb3147a9 Disable flakey tests.
See #3095
2025-01-21 13:27:49 +01:00
Mark Paluch
df812bca4b Prepare 3.4.2 (2024.1.2).
See #3073
2025-01-17 11:37:19 +01:00
Mark Paluch
764541159e Polishing.
Add missing Nullable annotations to serializers.

See #3053
Original pull request: #3058
2025-01-15 14:10:41 +01:00
kimjinmyeong
5166f4c435 Add missing @Override annotation to GenericJackson2JsonRedisSerializer.useForType.
This fixes an issue where the `useForType` method in
GenericJackson2JsonRedisSerializer did not have the `@Override`
annotation, making it less clear that it overrides a method
from DefaultTypeResolverBuilder.

Closes #3053
Original pull request: #3058
2025-01-15 14:10:41 +01:00
KIMSIWOO
904968de00 Fix typo in reference cache example code.
Fixed minor typo on example code `build()` to `builder()`

Closes #3064
2025-01-15 14:00:18 +01:00
powercheng
9cef8ae74e Fix typo in reference docs.
Closes #3082
2025-01-15 13:56:39 +01:00
Mark Paluch
0d23031969 Use Integer return type for Number return types except Double and Float.
Lettuce's ValueOutput doesn't RESP 3 long values so we must use IntegerOutput instead.

Closes #3090
2025-01-13 14:35:22 +01:00
Mark Paluch
cbe5ecf158 Polishing.
Prepare pool for Jedis as well. Introduce generics for Add ticket references to tests.

See #3072
2025-01-10 14:02:38 +01:00
Asmir Mustafic
1d6788e3ba Prepare connection pool.
We now prepare the pool when the connection factory is started respective the pool has been instantiated.

Closes #3072
2025-01-10 14:02:38 +01:00
Mark Paluch
5cc0842b2f Extend license header copyright years to 2025.
See #3086
2025-01-08 09:58:49 +01:00
Christoph Strobl
0e609876cb Prepare 3.4.1 (2024.1.1).
See #3044
2024-12-13 09:34:27 +01:00
Mark Paluch
d124280f19 Polishing.
Tweak Javadoc wording for execute(…) with callback methods.

See #3049
Original pull request: #3055
2024-11-28 08:42:21 +01:00
Marcin Grzejszczak
2298a86ea8 Adds missing javadocs for RedisOperations.hasKey().
Also, added missing javadocs about what the method returns and about nullability.

Closes #3049
Original pull request: #3055
2024-11-28 08:42:21 +01:00
Marcin Grzejszczak
749f5ff3ca Polishing.
Updated more javadocs where reference to a Redis command was invalid.

Original pull request: #3047
See: #3047
2024-11-26 11:41:10 +01:00
vaan_oxo
92eda5a924 Fix incorrect reference to SETNX in ReactiveValueOperations.setIfAbsent
Original pull request: #3047
Closes #3047
2024-11-26 11:40:46 +01:00
Mark Paluch
82cb467bc4 Prepare 3.4 GA (2024.1.0).
See #3025
2024-11-15 14:10:37 +01:00
Seungrae Kim
4f32c69ebc Fix typo in reference documentation.
Closes #3018
2024-11-14 15:50:30 +01:00
Mark Paluch
cb73f0b6ec Polishing.
Tweak wording.

See #3021
2024-11-14 15:49:06 +01:00
DongCheol Kim
e2746ecf5a Improve StreamMessageListenerContainer Javadoc.
Fix minor typos and improve the clarity of the StreamMessageListenerContainer Javadoc regarding subscription registration.

Closes #3021
2024-11-14 15:48:56 +01:00
Mark Paluch
b18829ffc2 Prepare 3.4 RC1 (2024.1.0).
See #2994
2024-10-18 12:46:44 +02:00
Mark Paluch
856776710e Polishing.
Fix Javadoc tags.

See #2994
2024-10-17 15:43:18 +02:00
Mark Paluch
b1e07f5e15 Polishing.
Replace subclass per command usage with lambdas.

See #2897
Original pull request: #2900
2024-10-11 10:26:05 +02:00
Ehsan Alemzadeh
12d97be97f Use extended SET instead of deprecated setEx, pSetEx and setNX commands.
Replace usage of deprecated commands setEx, pSetEx and setNX in DefaultValueOperations by set command with additional SetOption arguments

Closes #2897
Original pull request: #2900
2024-10-11 10:25:47 +02:00
Mark Paluch
83cb3d87d1 Fix Jedis cluster connection lookup for IPv6 hosts.
We previously used our own mechanism to Render Host and Port causing that IPv6 addresses were enclosed in brackets.

Now we've aligned with Jedis' keying by using HostAndPort that just concatenates the host and port part.

Closes #3015
2024-10-10 15:32:36 +02:00
Mark Paluch
3a9249b9fe Polishing.
Simplify code and tests.

See #3009
2024-10-10 15:22:54 +02:00
sujl95(TheWing)
b1453dabc0 Correctly handle null listener in RedisMessageListenerContainer.remove(…).
Closes #3009
2024-10-10 15:22:27 +02:00
Mark Paluch
20ceb4cf05 Polishing.
Introduce factory method overload accepting the default port so that Sentinel uses the right port.
Refine tests. Refine Javadoc.

See #2928
Original pull request: #3002
2024-10-10 15:03:02 +02:00
LeeHyungGeol
047e63ea78 RedisNode creation from bare hostname assigns default port.
Closes #2928
Original pull request: #3002
2024-10-10 15:01:59 +02:00
Mark Paluch
6e85141310 Polishing.
Consistently use literal null.

See #3010
2024-10-10 14:36:08 +02:00
Mark Paluch
31b6736c6b Consistently accept varargs with Redis Scripting.
Closes #3010
2024-10-10 14:35:54 +02:00
jinia91
7bedd602e7 Update RedisMessageListenerContainer docs.
Closes #3005
2024-10-10 14:21:17 +02:00
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
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
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