/** * Close the cache from reading. */ protected function close() { if ($this->cache !== null) { $this->cache->close(); $this->cache = null; } }