private function saveDb(array $collection) { file_put_contents($this->filename, serialize($collection)); $this->cache = null; }