code: def _sync(self):
          
          _logger.debug("_sync()")
          self._lock.acquire_write()  # TODO: read access is enough?
          try:
              if self._loaded:
                  self._dict.sync()
          finally:
              self._lock.release()
docs: Write persistent dictionary to disc.