public function clear() { $this->data = []; $this->expire = []; $this->ttl = []; $this->timer->stop(); $this->queue = new \SplPriorityQueue(); }