Permalink
Browse files

Merge pull request #10781 from h-moriya/fix_Redis

Fix Correspond to RedisCluster from RedisEngine::clear()
  • Loading branch information...
markstory committed Jun 22, 2017
2 parents 7bc43d0 + fd7a29d commit 42d43888e91f9a7108964c3cb2766747e47540e2
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/Cache/Engine/RedisEngine.php
@@ -225,9 +225,13 @@ public function clear($check)
return true;
}
$keys = $this->_Redis->getKeys($this->_config['prefix'] . '*');
$this->_Redis->del($keys);
return true;
$result = [];
foreach ($keys as $key) {
$result[] = $this->_Redis->delete($key) > 0;
}
return !in_array(false, $result);
}
/**

0 comments on commit 42d4388

Please sign in to comment.