Skip to content
Snippets Groups Projects
Commit 53f4e89c authored by drcolossos's avatar drcolossos Committed by Pierre.R
Browse files

Issue #2453065 by DrColossos: Invalid bulk length due to possbile wrong function call

parent 2936ee3f
No related branches found
Tags 8.x-3.0-alpha4
No related merge requests found
......@@ -117,7 +117,7 @@ class Redis_Cache_Predis extends Redis_Cache_Base
public function deleteByPrefix($prefix)
{
$client = $this->getClient();
$ret = $client->eval(self::EVAL_DELETE_PREFIX, array($this->getKey($prefix . '*')));
$ret = $client->eval(self::EVAL_DELETE_PREFIX, 1, $this->getKey($prefix . '*'));
if (1 != $ret) {
trigger_error(sprintf("EVAL failed: %s", $client->getLastError()), E_USER_ERROR);
}
......@@ -126,7 +126,7 @@ class Redis_Cache_Predis extends Redis_Cache_Base
public function flush()
{
$client = $this->getClient();
$ret = $client->eval(self::EVAL_DELETE_PREFIX, array($this->getKey('*')));
$ret = $client->eval(self::EVAL_DELETE_PREFIX, 1, $this->getKey('*'));
if (1 != $ret) {
trigger_error(sprintf("EVAL failed: %s", $client->getLastError()), E_USER_ERROR);
}
......@@ -135,7 +135,7 @@ class Redis_Cache_Predis extends Redis_Cache_Base
public function flushVolatile()
{
$client = $this->getClient();
$ret = $client->eval(self::EVAL_DELETE_VOLATILE, array($this->getKey('*')));
$ret = $client->eval(self::EVAL_DELETE_VOLATILE, 1, $this->getKey('*'));
if (1 != $ret) {
trigger_error(sprintf("EVAL failed: %s", $client->getLastError()), E_USER_ERROR);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment