/** * Unset an item from the array * * @param int $offset * @return void */ public function offsetUnset($offset) { apc_delete($this->getNamespace() . '-class_' . $offset); if (parent::offsetExists($offset)) { parent::offsetUnset($offset); } }
/** * Check if the offset exists * * @param int $offset The offset * @return bool */ public function offsetExists($offset) { if (false === ($result = parent::offsetExists($offset))) { $result = apc_exists($this->_namespace . '-' . $offset); } return $result; }