Skip to content

Add support for SMISMEMBER through variadic SetOperations.isMember(K key, Object... o) and ReactiveSetOperations #2037

Closed
@mp911de

Description

@mp911de

Hi, this is a ideal-for-contribution issue. This means we've worked to make it more legible to folks who don't haven't contributed much to our codebase before.

Problem

Redis 6.2 introduced a new command SMISMEMBER as variadic variant of SISMEMBER. We want to support this command in Spring Data Redis.

Solution

Add List<Boolean> isMember(K key, Object... o) to SetOperations and ReactiveSetOperations. The reactive API should return Mono<List<Boolean>>. Add a isMember(Object…) to BoundSetOperations and make sure to implement the methods on the classes implementing the interfaces.

Extend the reactive and imperative command interfaces ReactiveSetCommands respective RedisSetCommands including DefaultedRedisConnection. You will need to extend JedisClusterSetCommands, JedisSetCommands, and LettuceSetCommands.

AbstractConnectionIntegrationTests is the main test class for connection-related tests.

See also https://redis.io/commands/smismember for further information.

Steps to Fix

  • Claim this issue with a comment below and ask any clarifying questions you need
  • Set up a repository locally following the Contributing Guidelines
  • Try to fix the issue following the steps above
  • Commit your changes and start a pull request

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions