public function del($key)
{
if (is_array($key)) {
$todel = array();
foreach ($key as $arr_key) {
$todel[] = $this->prefix . $arr_key;
if (\apc_exists($this->tags_prefix . $arr_key)) {
$todel[] = $this->tags_prefix . $arr_key;
}
if (\apc_exists($this->lock_key_prefix . $arr_key)) {
$todel[] = $this->lock_key_prefix . $arr_key;
}
}
$r = apc_delete($todel);
if (empty($r)) {
return true;
} else {
return $r;
}
} else {
if (\apc_exists($this->tags_prefix . $key)) {
apc_delete($this->tags_prefix . $key);
}
if (\apc_exists($this->lock_key_prefix . $key)) {
apc_delete($this->lock_key_prefix . $key);
}
return apc_delete($this->prefix . $key);
}
}