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 575bf78 commit cb0f559Copy full SHA for cb0f559
src/main/java/org/springframework/data/redis/core/RedisTemplate.java
@@ -38,6 +38,7 @@
38
import org.springframework.transaction.support.TransactionSynchronizationManager;
39
import org.springframework.util.Assert;
40
import org.springframework.util.ClassUtils;
41
+import org.springframework.util.CollectionUtils;
42
43
/**
44
* Helper class that simplifies Redis data access code.
@@ -441,6 +442,10 @@ public Object doInRedis(RedisConnection connection) {
441
442
443
444
public void delete(Collection<K> keys) {
445
+ if (CollectionUtils.isEmpty(keys)) {
446
+ return;
447
+ }
448
+
449
final byte[][] rawKeys = rawKeys(keys);
450
451
execute(new RedisCallback<Object>() {
0 commit comments