Skip to content

Remove long deprecated API and refine API #2276

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 12 commits into from
Closed

Conversation

mp911de
Copy link
Member

@mp911de mp911de commented Mar 7, 2022

This pull request removes long deprecated API and methods that should have been deprecated. Upon agreeing on which methods and API should be removed, we will deprecate these items in the 2.7 development line.

The defaulted Connection arrangement is now refined and will not be removed as removal will cause a difficult time for existing applications. Instead, using commands directly on the connection is now yielding a deprecation warning to guide users towards using the segregated command interfaces.

Also, this PR introduces a few suggestions towards bound keys API and RedisTemplate API refinements that should be split into another pull request once the deprecation removal is merged.

Closes #2273

mp911de added 12 commits March 7, 2022 09:25
The API exposes now the renamed command terminology and no longer the deprecated one.

Closes #2195
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.
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.
Tweak Javadoc. Make tests less strict for random values test.
@mp911de mp911de added the type: enhancement A general enhancement label Mar 7, 2022
@mp911de mp911de added this to the 3.0 M2 (2022.0.0) milestone Mar 7, 2022
christophstrobl pushed a commit that referenced this pull request Mar 18, 2022
The API exposes now the renamed command terminology (replica) only and no longer the deprecated one.

Closes: #2195
See: #2274
Original Pull Request: #2276
christophstrobl pushed a commit that referenced this pull request Mar 18, 2022
christophstrobl pushed a commit that referenced this pull request Mar 18, 2022
christophstrobl pushed a commit that referenced this pull request Mar 18, 2022
See: #2273
Original Pull Request: #2276
christophstrobl pushed a commit that referenced this pull request Mar 18, 2022
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
christophstrobl pushed a commit that referenced this pull request Mar 18, 2022
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
christophstrobl pushed a commit that referenced this pull request Mar 18, 2022
christophstrobl pushed a commit that referenced this pull request Mar 18, 2022
See: #2273
Original Pull Request: #2276
christophstrobl pushed a commit that referenced this pull request Mar 18, 2022
Original Pull Request: #2276
christophstrobl pushed a commit that referenced this pull request Mar 18, 2022
christophstrobl pushed a commit that referenced this pull request Mar 18, 2022
Tweak Javadoc. Make tests less strict for random values test.

Original Pull Request: #2276
christophstrobl added a commit that referenced this pull request Mar 18, 2022
See: #2273 & #2274
Original Pull Request: #2276
@christophstrobl
Copy link
Member

merged to 3.0.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants