Skip to content

Commit 2cb4585

Browse files
author
Costin Leau
committed
fix SetOperations#randomMember operation
DATAREDIS-83
1 parent 1c08d22 commit 2cb4585

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/main/java/org/springframework/data/redis/core/DefaultSetOperations.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public V randomMember(K key) {
164164
return execute(new ValueDeserializingRedisCallback(key) {
165165

166166
protected byte[] inRedis(byte[] rawKey, RedisConnection connection) {
167-
return connection.randomKey();
167+
return connection.sRandMember(rawKey);
168168
}
169169
}, true);
170170
}

0 commit comments

Comments
 (0)