public function delete($key) { // lock required for CAS if (!$this->lock($key)) { return false; } $success = $this->apcu_delete($key); unset($this->expires[$key]); $this->unlock($key); return $success; }