public function del($keys)
{
if (empty($keys)) {
return false;
}
if (!is_array($keys)) {
$keys = array($keys);
}
$todel = array();
$tags = $this->redis->Keys($this->tag_prefix . '*');
foreach ($keys as $key) {
$todel[] = $this->prefix . $key;
$todel[] = $this->serialize_key_prefix . $key;
$todel[] = $this->lock_key_prefix . $key;
if (!empty($tags)) {
foreach ($tags as $tag) {
$this->redis->sRem($tag, $key);
}
}
}
return $this->redis->Del($todel);
}