Add missing command deprecations#4397
Merged
Merged
Conversation
Test Results 285 files ±0 285 suites ±0 11m 56s ⏱️ -24s Results for commit 0d595e6. ± Comparison against base commit af6454d. This pull request skips 1011 tests.♻️ This comment has been updated with latest results. |
ggivo
reviewed
Jan 16, 2026
ggivo
left a comment
Collaborator
There was a problem hiding this comment.
For clarity, the Javadoc should also indicate the Jedis version in which this deprecation is introduced. For example:
/**
* @deprecated Use {@link HashBinaryCommands#hset(byte[], Map)}.
* Deprecated in Jedis 8.0.0. Mirrors Redis deprecation since 4.0.0.
*/
@Deprecated
Contributor
Author
Done |
ggivo
approved these changes
Jan 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Redis Deprecated Commands and Arguments
Source: Redis Commands JSON
Generated: January 2026
Deprecated Commands
The following 21 commands have been deprecated across all Redis versions:
SUBSTRGETRANGEPSETEXSETwith thePXargumentSETEXSETwith theEXargumentSETNXSETwith theNXargumentHMSETHSETwith multiple field-value pairsCLUSTER SLAVESCLUSTER REPLICASSLAVEOFREPLICAOFBRPOPLPUSHBLMOVEwith theRIGHTandLEFTargumentsGEORADIUSGEOSEARCHandGEOSEARCHSTOREwith theBYRADIUSargumentGEORADIUSBYMEMBERGEOSEARCHandGEOSEARCHSTOREwith theBYRADIUSandFROMMEMBERargumentsGEORADIUSBYMEMBER_ROGEOSEARCHwith theBYRADIUSandFROMMEMBERargumentsGEORADIUS_ROGEOSEARCHwith theBYRADIUSargumentGETSETSETwith theGETargumentRPOPLPUSHLMOVEwith theRIGHTandLEFTargumentsZRANGEBYLEXZRANGEwith theBYLEXargumentZRANGEBYSCOREZRANGEwith theBYSCOREargumentZREVRANGEZRANGEwith theREVargumentZREVRANGEBYLEXZRANGEwith theREVandBYLEXargumentsZREVRANGEBYSCOREZRANGEwith theREVandBYSCOREargumentsCLUSTER SLOTSCLUSTER SHARDSQUITSummary by Version
Deprecated Command Arguments
The following 1 command argument has been deprecated:
CLIENT KILLold-formatDetails
CLIENT KILL -
old-formatargumentCLIENT KILLused a simpleip:portsyntax. The newer format uses keyword-based arguments likeID,TYPE,ADDR,LADDR,SKIPME, etc.Migration Recommendations
When upgrading Redis versions, consider the following migration strategies:
String Commands
SUBSTR→GETRANGESETEX key seconds value→SET key value EX secondsPSETEX key milliseconds value→SET key value PX millisecondsSETNX key value→SET key value NXGETSET key value→SET key value GETHash Commands
HMSET key field value [field value ...]→HSET key field value [field value ...]List Commands
RPOPLPUSH source destination→LMOVE source destination RIGHT LEFTBRPOPLPUSH source destination timeout→BLMOVE source destination RIGHT LEFT timeoutSorted Set Commands
ZRANGEBYLEX key min max→ZRANGE key min max BYLEXZRANGEBYSCORE key min max→ZRANGE key min max BYSCOREZREVRANGE key start stop→ZRANGE key start stop REVZREVRANGEBYLEX key max min→ZRANGE key max min REV BYLEXZREVRANGEBYSCORE key max min→ZRANGE key max min REV BYSCOREGeospatial Commands
GEORADIUS→GEOSEARCHwithBYRADIUSGEORADIUS_RO→GEOSEARCHwithBYRADIUSGEORADIUSBYMEMBER→GEOSEARCHwithBYRADIUSandFROMMEMBERGEORADIUSBYMEMBER_RO→GEOSEARCHwithBYRADIUSandFROMMEMBERReplication Commands
SLAVEOF host port→REPLICAOF host portCLUSTER SLAVES node-id→CLUSTER REPLICAS node-idCluster Commands (Redis 7.0+)
CLUSTER SLOTS→CLUSTER SHARDSConnection Commands (Redis 7.2+)
QUIT→ Simply close the connection directlyNotes