Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add support for Redis SINTERCARD command #3210

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

Open
Kiminni wants to merge 6 commits into spring-projects:main
base: main
Choose a base branch
Loading
from Kiminni:feature/add-sintercard-operations

Conversation

Copy link

@Kiminni Kiminni commented Aug 31, 2025

Summary

Implements support for Redis 7.0+ SINTERCARD command in Spring Data Redis.

Fixes #2906

Changes

Core Implementation

  • Add sInterCard method to RedisSetCommands interface
  • Implement sInterCard in JedisSetCommands using Jedis client
  • Implement sInterCard in LettuceSetCommands using Lettuce client

Cluster Support

  • Add cluster-aware sInterCard in JedisClusterSetCommands
  • Add cluster-aware sInterCard in LettuceClusterSetCommands
  • Same-slot optimization with native cluster commands
  • Cross-slot fallback using intersection calculation

Connection Wrappers

  • Add sInterCard delegation in DefaultedRedisConnection
  • Add sInterCard support in StringRedisConnection
  • Implement serialization handling in DefaultStringRedisConnection

High-Level API

  • Add user-friendly intersectSize methods to SetOperations
  • Implement intersectSize in DefaultSetOperations
  • Support multiple method overloads for different key patterns

Testing

  • Comprehensive integration tests with @EnabledOnCommand("SINTERCARD")

  • Test coverage for all connection types (Jedis, Lettuce, Cluster)

  • Various intersection scenarios (empty, partial, full)

  • You have read the Spring Data contribution guidelines.

  • You use the code formatters provided here and have them applied to your changes. Don’t submit any formatting related changes.

  • You submit test cases (unit or integration tests) that back your changes.

  • You added yourself as author in the headers of the classes you touched. Amend the date range in the Apache license header if needed. For new types, add the license header (copy from another file and set the current year only).

injae-kim reacted with thumbs up emoji injae-kim reacted with heart emoji injae-kim reacted with rocket emoji
Kiminni added 6 commits August 31, 2025 19:46
Signed-off-by: Kiminni <imk0980@gmail.com>
...etCommands
Signed-off-by: Kiminni <imk0980@gmail.com>
...nsIntegrationTests
Signed-off-by: Kiminni <imk0980@gmail.com>
@Kiminni Kiminni force-pushed the feature/add-sintercard-operations branch from ac54149 to 4fc1965 Compare August 31, 2025 10:47
@mp911de mp911de self-assigned this Sep 1, 2025
@mp911de mp911de added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Sep 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Labels
type: enhancement A general enhancement
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

feature request: SINTERCARD in SetOperations

AltStyle によって変換されたページ (->オリジナル) /