docs: def close(self):
          """Write the contents of the cache to disk (only if `update_cache`
          parameter during the object initialization was not set to `False`) and
          clear the in memory cache."""
          if self._cache:
              if self._update_cache:
                  self._write_cache_to_file()
              self._cache = None