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