/** Register that a peanut has been deleted. * The peanut must be removed from the cache. * @param integer $id the id of the deleted peanut */ function peanutDeleted($id) { unSet($this->peanutsById[$id]); }