Feature - Support for RBatch.getMap variants that accept MapOptions (#6096) by ronitgupta138 · Pull Request #7390 · redisson/redisson · GitHub
Skip to content

Feature - Support for RBatch.getMap variants that accept MapOptions (#6096) - #7390

Merged
mrniko merged 1 commit into
redisson:masterfrom
ronitgupta138:feat/rbatch-getmap-mapoptions
Oct 16, 2026
Merged

mrniko merged 1 commit into
redisson:masterfrom
ronitgupta138:feat/rbatch-getmap-mapoptions

Conversation

@ronitgupta138

Copy link
Copy Markdown
Contributor

Resolves #6096

Problem

RBatch (as well as RBatchReactive and RBatchRx) only supports getMap(String name) and getMap(String name, Codec codec). Applications using MapOptions (such as MapWriter, MapLoader, or custom settings) cannot supply options when accessing maps through a batch.

Solution

  • Added getMap(String name, MapOptions<K, V> options) and getMap(String name, Codec codec, MapOptions<K, V> options) overloads to RBatch, RBatchReactive, and RBatchRx.
  • Implemented the new overloads in RedissonBatch, RedissonBatchReactive, and RedissonBatchRx by invoking RedissonMap constructors with MapOptions.
  • Added unit tests in RedissonBatchTest and RedissonBatchRxTest verifying that maps created with MapOptions execute batch commands properly.

Copilot AI balanced review requested due to automatic review settings October 15, 2026 20:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@mrniko mrniko added this to the 4.8.1 milestone Oct 16, 2026
@mrniko mrniko added the feature label Oct 16, 2026
@mrniko
mrniko merged commit 204b443 into redisson:master Oct 16, 2026
4 checks passed
@mrniko

mrniko commented Oct 16, 2026

Copy link
Copy Markdown
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

Support for RBatch.getMap variants that accept MapOptions

3 participants