Skip to content

Commit 4445d2d

Browse files
committed
Add SINTERCARD command to RedisSetCommands
Signed-off-by: Kiminni <imk0980@gmail.com>
1 parent 0471ce8 commit 4445d2d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/main/java/org/springframework/data/redis/connection/RedisSetCommands.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
* @author Costin Leau
3030
* @author Christoph Strobl
3131
* @author Mark Paluch
32+
* @author Mingi Lee
3233
* @see RedisCommands
3334
*/
3435
@NullUnmarked
@@ -153,6 +154,16 @@ public interface RedisSetCommands {
153154
*/
154155
Long sInterStore(byte @NonNull [] destKey, byte @NonNull [] @NonNull... keys);
155156

157+
/**
158+
* Returns the cardinality of the set which would result from the intersection of all the given sets.
159+
*
160+
* @param keys must not be {@literal null}.
161+
* @return {@literal null} when used in pipeline / transaction.
162+
* @see <a href="https://redis.io/commands/sintercard">Redis Documentation: SINTERCARD</a>
163+
* @since 3.4
164+
*/
165+
Long sInterCard(byte @NonNull [] @NonNull... keys);
166+
156167
/**
157168
* Union all sets at given {@code keys}.
158169
*

0 commit comments

Comments
 (0)