def sync(self):
        """Syncs Shelve object."""
        try:
            self.cache.sync()
            return True
        except __HOLE__:
            return False
dataset/ETHPy150Open buckket/twtxt/twtxt/cache.py/Cache.sync