public function Redis_Cache_Predis::flush in Redis 7.3
File
- lib/
Redis/ Cache/ Predis.php, line 128
Class
- Redis_Cache_Predis
- Predis cache backend.
Code
public function flush() {
$client = $this
->getClient();
$ret = $client
->eval(self::EVAL_DELETE_PREFIX, 0, $this
->getKey('*'));
if (1 != $ret) {
trigger_error(sprintf("EVAL failed: %s", $client
->getLastError()), E_USER_ERROR);
}
}