def close()

in sparkey/__init__.py [0:0]


    def close(self):
        """Flushes pending log writes from memory to disk, rewrites the hash
        file and closes the writer.

        """
        if self._logwriter is not None:
            self.flush()
            self.destroy()