We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4191e6 commit 23d1dd0Copy full SHA for 23d1dd0
src/main/java/org/springframework/data/redis/core/RedisTemplate.java
@@ -637,6 +637,16 @@ public DataType type(K key) {
637
return doWithKeys(connection -> connection.type(rawKey));
638
}
639
640
+ /**
641
+ * Retrieve keys matching the given pattern via {@code KEYS} command.
642
+ * <p>
643
+ * Note: This command scans the entire keyspace and may cause performance issues
644
+ * in production environments. Prefer using {@link #scan(ScanOptions)} for large datasets.
645
+ *
646
+ * @param pattern key pattern
647
+ * @return set of matching keys
648
+ * @see <a href="https://redis.io/commands/keys">Redis KEYS command</a>
649
+ */
650
@Override
651
@SuppressWarnings("unchecked")
652
public Set<K> keys(K pattern) {
0 commit comments