We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c08d22 commit 2cb4585Copy full SHA for 2cb4585
src/main/java/org/springframework/data/redis/core/DefaultSetOperations.java
@@ -164,7 +164,7 @@ public V randomMember(K key) {
164
return execute(new ValueDeserializingRedisCallback(key) {
165
166
protected byte[] inRedis(byte[] rawKey, RedisConnection connection) {
167
- return connection.randomKey();
+ return connection.sRandMember(rawKey);
168
}
169
}, true);
170
0 commit comments