Commit Graph

2573 Commits

Author SHA1 Message Date
Mark Paluch
fc8ba1aa84 Polishing.
Consistently use InvalidDataAccessApiUsageException to signal that an operation is not allowed/supported in the current mode of operation.
Replace converter objects with conversion within the actual method to remove indirections.

Original Pull Request: #2287
2022-05-18 13:37:01 +02:00
Mark Paluch
ca49139572 Update docs.
Also, refine docs regarding driver ordering.

Original Pull Request: #2287
2022-05-18 13:36:35 +02:00
Mark Paluch
f232a5b3fe Polishing.
Reformat code. Reduce visibility, simplify code.

Original Pull Request: #2287
2022-05-18 13:35:38 +02:00
Mark Paluch
1e4cd6f341 Upgrade to Jedis 4.2.
The upgrade also allows to enable support for GEOSEARCH, GEOSEARCHSTORE, XCLAIMJUSTID and XPENDING.

Closes: #2212
Original Pull Request: #2287
2022-05-18 13:35:01 +02:00
John Blum
d3a70f8f22 Remove Docker Registry login.
Closes #2327.
2022-05-16 13:13:34 -07:00
Christoph Strobl
bbfa86ad1e Fix pom.xml formatting.
This commit reverts formatting changes introduced via da209d4a23.

See #2286
2022-05-13 13:41:53 +02:00
Christoph Strobl
e1320a55b4 After release cleanups.
See #2286
2022-05-13 10:53:26 +02:00
Christoph Strobl
43d2741e2b Prepare next development iteration.
See #2286
2022-05-13 10:53:24 +02:00
Christoph Strobl
6ff6c1b1a6 Release version 3.0 M4 (2022.0.0).
See #2286
2022-05-13 10:44:00 +02:00
Christoph Strobl
da209d4a23 Prepare 3.0 M4 (2022.0.0).
See #2286
2022-05-13 10:43:21 +02:00
Christoph Strobl
5712b3b98a Update spring.io project urls.
This commit updates outdated projects.spring.io links to spring.io/projects.

Closes: #2319
2022-05-10 12:51:39 +02:00
Christoph Strobl
8a6c45335a Provide additional meta information via pom.xml
Add description, url, scm and issueManagement.

Closes: #2318
2022-05-10 12:46:54 +02:00
Mark Paluch
35e44f6e26 Polishing.
Update Spring Framework documentation links.

See #2297
2022-04-21 11:49:20 +02:00
Dveamer
f7b3586892 Fix broken link in the redis-transaction ref docs.
The link to "declarative transaction management" was broken.

Closes #2297
2022-04-21 11:35:58 +02:00
Mark Paluch
5f75eab65e Attempt early usage of custom converters.
We now try to eagerly apply a custom converter when reading Redis properties in the MappingRedisConverter before considering type hints from the hash.

We require type hints to properly restore the target type for a hash entry as Redis data is all byte arrays, so a simple String needs a type hint before we can load it back into an e.g. Object-typed property. Subtypes of properties (such as ZoneRegion for ZoneId) are sometimes not associated with a converter as only the parent type (ZoneId) is associated with a converter. Trying to convert the value into the subtype directly through our ConversionService would fail in that case.

Closes #2307
2022-04-20 15:16:50 +02:00
Mark Paluch
e0f49370d9 Correctly return connection future from StaticMasterReplicaConnectionProvider.
We now pass on the connection future when connecting through StaticMasterReplicaConnectionProvider.getConnectionAsync(…).

Closes #2296
2022-04-06 14:21:46 +02:00
Mark Paluch
fea6e7842b Polishing.
Refine tests as we do not require assertions for every publish command when testing listeners.

See #2209
Original pull request: #2225.
2022-03-31 11:58:34 +02:00
Mark Paluch
84820c4e17 Polishing.
Add nullable annotations. Add tests.

See #2279
Original pull request: #2280.
2022-03-31 10:11:08 +02:00
helei01_gza
5ce30f0df4 Eagerly return null values in AbstractOperations.deserializeGeoResults(…) to avoid null dereference.
Closes #2279
Original pull request: #2280.
2022-03-31 10:11:07 +02:00
Mark Paluch
03878a3c09 Upgrade to Apache Commons Pool2 2.11.1.
Closes #2295
2022-03-31 09:39:01 +02:00
Mark Paluch
0e847a3da8 Polishing.
Reformat code. Refine tests as we do not require assertions for every publish command when testing listeners.

See #2209
Original pull request: #2225.
2022-03-31 09:31:27 +02:00
Vedran Pavic
178d44c5f1 Update RedisOperations#convertAndSend to return number of clients receiving the message.
Currently, `RedisOperations#convertAndSend` is void event though the underlying `RedisPubSubCommands#publish` returns a `Long` that represents the number of clients receiving the published message (see https://redis.io/commands/publish).

This commit updates `RedisOperations#convertAndSend` to return the number of clients that received the message.

Closes #2209
Original pull request: #2225.
2022-03-31 09:31:16 +02:00
Christoph Strobl
d2cae7528b Update build triggers.
See: #2286
2022-03-24 13:34:32 +01:00
Mark Paluch
4d8a826472 After release cleanups.
See #2285
2022-03-22 14:07:38 +01:00
Mark Paluch
0a5fcfe3d1 Prepare next development iteration.
See #2285
2022-03-22 14:07:36 +01:00
Mark Paluch
01f8bfa23b Release version 3.0 M3 (2022.0.0).
See #2285
2022-03-22 14:00:23 +01:00
Mark Paluch
c39b13d321 Prepare 3.0 M3 (2022.0.0).
See #2285
2022-03-22 14:00:01 +01:00
Mark Paluch
f277a6099e After release cleanups.
See #2242
2022-03-21 16:44:41 +01:00
Mark Paluch
a900c42739 Prepare next development iteration.
See #2242
2022-03-21 16:44:39 +01:00
Mark Paluch
90712999b1 Release version 3.0 M2 (2022.0.0).
See #2242
2022-03-21 16:35:08 +01:00
Mark Paluch
c864b51244 Prepare 3.0 M2 (2022.0.0).
See #2242
2022-03-21 16:34:37 +01:00
Mark Paluch
a27a345358 Upgrade to Lettuce 6.1.8.RELEASE.
Closes #2281
2022-03-18 11:49:00 +01:00
Christoph Strobl
8ea593ead2 Update reference Documentation
See: #2273 & #2274
Original Pull Request: #2276
2022-03-17 15:59:09 +01:00
Mark Paluch
d76c5be7da Polishing.
Tweak Javadoc. Make tests less strict for random values test.

Original Pull Request: #2276
2022-03-17 15:59:09 +01:00
Mark Paluch
4fdb5fd50f Introduce executeWithoutResult(…) method.
Original Pull Request: #2276
2022-03-17 15:59:09 +01:00
Mark Paluch
f5715446c8 Introduce doWithKeys.
Original Pull Request: #2276
2022-03-17 15:59:09 +01:00
Mark Paluch
19d1f52f0a Reorder methods.
See: #2273
Original Pull Request: #2276
2022-03-17 15:59:08 +01:00
Mark Paluch
f5af2cf468 Replace Bound…Operations implementation with a proxy factory.
Original Pull Request: #2276
2022-03-17 15:59:08 +01:00
Mark Paluch
33e8974578 Refine defaulted connection arrangement.
DefaultedRedis…Connection is now deprecated to help with migration towards segregated/commands interface usage. The connection now exposes a commands() object providing access to RedisCommands so that a composite commands object can be accessed independently from the connection.

Redis…Commands provider represent entry points to obtain segregated command interfaces.

See: #2273
Original Pull Request: #2276
2022-03-17 15:59:08 +01:00
Mark Paluch
f6eaa40019 Polishing.
StreamInfo subtypes now implement Streamable. Switch from stream mapping to for/each style to avoid Java Stream creation.

Introduce getRequired(…) methods to improve nullability experience.

Original Pull Request: #2276
2022-03-17 15:59:08 +01:00
Mark Paluch
5c4c9e029f Remove deprecated API.
See: #2273
Original Pull Request: #2276
2022-03-17 15:58:57 +01:00
Mark Paluch
b45d358abf Move Tuple, Limit, and Weights to top-level types.
See: #2273
Original Pull Request: #2276
2022-03-17 15:58:46 +01:00
Mark Paluch
91cfbf5470 Remove deprecated LettucePool and deprecated methods.
See: #2273
Original Pull Request: #2276
2022-03-17 15:58:22 +01:00
Mark Paluch
f1d528ffef Remove usage of oppressive language.
The API exposes now the renamed command terminology (replica) only and no longer the deprecated one.

Closes: #2195
See: #2274
Original Pull Request: #2276
2022-03-17 15:56:50 +01:00
Mark Paluch
69205c56bb Polishing.
Update Bound operations parameter documentation order. Tweak wording.

See #2214
2022-03-10 13:53:15 +01:00
zhenqiangyi
3cf420a8d4 Fix parameter documentation order of ZSetOperations methods.
Closes #2214
2022-03-10 13:53:15 +01:00
Mark Paluch
f19a61452a Polishing.
Update since tags. Move FlushOption converters to client-specific converters. Use method-references where possible.

See #2187
Original pull request: #2190.
2022-03-10 10:47:00 +01:00
Napster
3191def956 Add support for flush modes using FLUSHDB and FLUSHALL commands.
Closes #2187
Original pull request: #2190.
2022-03-10 10:46:58 +01:00
Mark Paluch
b895229f7c Polishing.
Avoid races in command unsubscribe fetching.

See #2226
2022-03-09 13:52:55 +01:00
dengliming
5e23f1c4de Simplify CLUSTER MYID command for Jedis.
Closes #2226
2022-03-09 13:51:02 +01:00