Skip to content

Commit

Permalink
Fix error "Wrong number of args calling Redis command"
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriele Diener committed Jun 30, 2016
1 parent 78acb04 commit c5da5e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions classes/Cache/Redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public function exists($key){
}

public function flush(){
if (empty($this->redis->keys('*'))) return false;
return call_user_func_array([$this->redis,'eval'], ["return redis.call('del', unpack(redis.call('keys', ARGV[1])))", "0", "*"]);
}

Expand Down

0 comments on commit c5da5e3

Please sign in to comment.