GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Introduce INCREX command by a-TODO-rov · Pull Request #4526 · redis/jedis

Conversation

@a-TODO-rov

@a-TODO-rov a-TODO-rov commented May 14, 2026 •
edited by cursor Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Note

Medium Risk
Adds a new Redis command surface (INCREX) across Jedis/UnifiedJedis/pipelining plus new parameter builders; changes touch core protocol enums and command construction, so regressions would mainly be in command argument encoding and response parsing.

Overview
Adds client support for Redis INCREX, including new StringCommands/StringBinaryCommands/pipeline APIs and corresponding implementations in Jedis, UnifiedJedis, PipeliningBase, and CommandObjects (integer and float variants returning [newValue, appliedIncrement]).

Introduces IncrexParams/IncrexFloatParams (via BaseIncrexParams) to encode bounds, SATURATE, and expiration controls (including ENX), extends Protocol with the new command/keywords, and adds comprehensive integration + mocked tests; pom.xml formatter includes are updated to cover the new *Increx* files.

Reviewed by Cursor Bugbot for commit 51a29ea. Bugbot is set up for automated code reviews on this repo. Configure here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@github-actions

github-actions Bot commented May 14, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Test Results

  203 files  ±  0    203 suites  ±0   9m 45s ⏱️ -12s
7 767 tests +150  7 108 ✅  - 447  659 💤 +597  0 ❌ ±0 
7 787 runs  +150  7 128 ✅  - 447  659 💤 +597  0 ❌ ±0 

Results for commit 51a29ea. ± Comparison against base commit c06bc2c.

This pull request skips 447 tests.
redis.clients.jedis.commands.commandobjects.CommandObjectsArrayCommandsTest[1] ‑ testArcountMissingKey()[1]
redis.clients.jedis.commands.commandobjects.CommandObjectsArrayCommandsTest[1] ‑ testArcountMissingKeyBinary()[1]
redis.clients.jedis.commands.commandobjects.CommandObjectsArrayCommandsTest[1] ‑ testArdel()[1]
redis.clients.jedis.commands.commandobjects.CommandObjectsArrayCommandsTest[1] ‑ testArdelBinary()[1]
redis.clients.jedis.commands.commandobjects.CommandObjectsArrayCommandsTest[1] ‑ testArdelrange()[1]
redis.clients.jedis.commands.commandobjects.CommandObjectsArrayCommandsTest[1] ‑ testArdelrangeBinary()[1]
redis.clients.jedis.commands.commandobjects.CommandObjectsArrayCommandsTest[1] ‑ testArget()[1]
redis.clients.jedis.commands.commandobjects.CommandObjectsArrayCommandsTest[1] ‑ testArgetBinary()[1]
redis.clients.jedis.commands.commandobjects.CommandObjectsArrayCommandsTest[1] ‑ testArgetrange()[1]
redis.clients.jedis.commands.commandobjects.CommandObjectsArrayCommandsTest[1] ‑ testArgetrangeBinary()[1]
…

♻️ This comment has been updated with latest results.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jit-ci

jit-ci Bot commented May 14, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

🛡️ Jit Security Scan Results

CRITICAL HIGH MEDIUM

✅ No security findings were detected in this PR


Security scan by Jit
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@a-TODO-rov a-TODO-rov linked an issue May 15, 2026 that may be closed by this pull request
Support INCREX command (Redis 8.8) #4529
Closed
@a-TODO-rov
a-TODO-rov marked this pull request as ready for review May 15, 2026 07:29
@a-TODO-rov a-TODO-rov added the feature label May 15, 2026
@a-TODO-rov
a-TODO-rov requested a review from ggivo May 15, 2026 07:30
@a-TODO-rov
a-TODO-rov force-pushed the increx branch from 01fe212 to c0dff63 Compare May 19, 2026 07:44
ggivo
ggivo reviewed May 19, 2026
View reviewed changes

@ggivo ggivo left a comment

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Looks good,
Added some notes, let's add integration tests for binary variants also.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/main/java/redis/clients/jedis/commands/StringCommands.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/main/java/redis/clients/jedis/BuilderFactory.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/main/java/redis/clients/jedis/BuilderFactory.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

ggivo
ggivo reviewed May 19, 2026
View reviewed changes
Comment thread src/main/java/redis/clients/jedis/commands/StringBinaryCommands.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/main/java/redis/clients/jedis/params/IncrexParams.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/main/java/redis/clients/jedis/params/IncrexParams.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

a-TODO-rov added 4 commits May 21, 2026 16:22
@a-TODO-rov
Introduce INCREX command
74dcb18
@a-TODO-rov
Polishing
5f3ca29
- Add binary ITs
- Remove experimental
- Move builders in response object. Reuse generic builders.
- Add javadoc.
@a-TODO-rov
Update API
4af0b89
@a-TODO-rov
Separate params
f5b8200
@a-TODO-rov
a-TODO-rov force-pushed the increx branch from 9c1a333 to f5b8200 Compare May 21, 2026 13:23
cursor[bot]
cursor Bot reviewed May 21, 2026
View reviewed changes
Comment thread src/main/java/redis/clients/jedis/resps/IncrexResponse.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

a-TODO-rov and others added 4 commits May 22, 2026 10:59
@a-TODO-rov
Reuse long list builder for increx response
4a3d73c
@a-TODO-rov
Return simple List response
be37f71
@a-TODO-rov
User addParams override instead abstract method for IncrexParams
c8c0b5e
@ggivo
Merge branch 'master' into increx
9803a00
ggivo
ggivo approved these changes May 22, 2026
View reviewed changes

@ggivo ggivo left a comment

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
a-TODO-rov and others added 3 commits May 22, 2026 16:03
@a-TODO-rov
Add params tests
886c892
@ggivo
Merge branch 'master' into increx
e5f9e8c
@ggivo
Merge branch 'master' into increx
51a29ea
cursor[bot]
cursor Bot reviewed May 22, 2026
View reviewed changes

@cursor cursor Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 51a29ea. Configure here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/test/java/redis/clients/jedis/mocked/MockedCommandObjectsTestBase.java
@Mock protected CommandObject<Double> doubleCommandObject;
@Mock protected CommandObject<FunctionStats> functionStatsCommandObject;
@Mock protected CommandObject<List<Double>> increxDoubleListCommandObject;
@Mock protected CommandObject<List<Long>> increxLongListCommandObject;

@cursor cursor Bot May 22, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Redundant mock fields duplicate existing typed mocks

Low Severity

increxDoubleListCommandObject and increxLongListCommandObject are CommandObject<List<Double>> and CommandObject<List<Long>> respectively — the exact same types as the already-existing listDoubleCommandObject (line 67) and listLongCommandObject (line 76). Every other mock in this shared base class follows a type-based naming convention (e.g., listStringCommandObject, longCommandObject). The existing mocks could be reused in the INCREX tests instead of introducing feature-prefixed duplicates.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 51a29ea. Configure here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ggivo
ggivo merged commit 9a2dcd5 into master May 22, 2026
18 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@ggivo
ggivo deleted the increx branch May 22, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@ggivo ggivo ggivo approved these changes
+1 more reviewer
@cursor cursor[bot] cursor[bot] left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

feature

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Support INCREX command (Redis 8.8)

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@a-TODO-rov @ggivo
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.