Skip to content

ISSUE#3328 - Remove deprecated code from ISSUE#1314#3351

Merged
tishun merged 1 commit intoredis:mainfrom
a-TODO-rov:issue#3328/clean-deprecated-code-from#1314
Aug 8, 2025
Merged

ISSUE#3328 - Remove deprecated code from ISSUE#1314#3351
tishun merged 1 commit intoredis:mainfrom
a-TODO-rov:issue#3328/clean-deprecated-code-from#1314

Conversation

@a-TODO-rov
Copy link
Copy Markdown
Contributor

Remove deprecated bufferUsageRatio methods

Removes deprecated bufferUsageRatio methods and related code from ClientOptions and ClusterClientOptions classes.

Changes

  • Removed bufferUsageRatio(int) builder method from ClientOptions.Builder
  • Removed getBufferUsageRatio() getter method from ClientOptions
  • Removed overridden bufferUsageRatio(int) method from ClusterClientOptions.Builder

These methods were deprecated in version 6.0 in favor of DecodeBufferPolicy (issue #1314) and are now being cleaned up.

Related Issues

@a-TODO-rov a-TODO-rov requested a review from Copilot July 8, 2025 11:35
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR cleans up deprecated bufferUsageRatio methods and related code in favor of the newer DecodeBufferPolicy.

  • Removed bufferUsageRatio(int) builder method from ClientOptions.Builder
  • Removed getBufferUsageRatio() getter method from ClientOptions
  • Removed overridden bufferUsageRatio(int) in ClusterClientOptions.Builder

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/main/java/io/lettuce/core/ClientOptions.java Deleted deprecated bufferUsageRatio builder and getter
src/main/java/io/lettuce/core/cluster/ClusterClientOptions.java Deleted overridden deprecated bufferUsageRatio builder

@a-TODO-rov a-TODO-rov requested a review from tishun July 8, 2025 11:36
@tishun tishun added this to the 7.0.0.RELEASE milestone Jul 11, 2025
@tishun tishun added the type: breaking Breaking change label Jul 11, 2025
Copy link
Copy Markdown
Collaborator

@tishun tishun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the PR! ;)

@tishun tishun force-pushed the issue#3328/clean-deprecated-code-from#1314 branch from 7be29f2 to e824d86 Compare August 8, 2025 13:31
@tishun tishun force-pushed the issue#3328/clean-deprecated-code-from#1314 branch from e824d86 to 0760614 Compare August 8, 2025 13:38
@tishun tishun merged commit 49eddf4 into redis:main Aug 8, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: breaking Breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants