public function del($key)
{
$this->acquire_key($this->ttl_table_name, $auto_unlocker);
$ttl_table = $this->read_TTL_table();
$ttl_table_changed = false;
$deleted = false;
if (!is_array($key)) {
$key = array($key);
}
foreach ($key as $k) {
$k = (string) $k;
$deleted = $this->memcache->delete($this->prefix . $k);
$this->memcache->delete($this->lock_key_prefix . $k);
if ($this->delTTLOfKey($k, $ttl_table)) {
$ttl_table_changed = true;
}
}
if ($ttl_table_changed) {
$this->save_TTL_table($ttl_table);
}
return $deleted;
}