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 0127b26 commit f5ece20Copy full SHA for f5ece20
src/Symfony/Component/Cache/Traits/RedisTrait.php
@@ -272,7 +272,17 @@ protected function doClear($namespace)
272
*/
273
protected function doDelete(array $ids)
274
{
275
- if ($ids) {
+ if (!$ids) {
276
+ return true;
277
+ }
278
+
279
+ if ($this->redis instanceof \Predis\Client && $this->redis->getConnection() instanceof ClusterInterface) {
280
+ $this->pipeline(function () use ($ids) {
281
+ foreach ($ids as $id) {
282
+ yield 'del' => [$id];
283
284
+ })->rewind();
285
+ } else {
286
$this->redis->del($ids);
287
}
288
0 commit comments