def save(self): self._cache_obj.dirty = True try: self._cache_obj.save() except peewee.IntegrityError as e: raise exceptions.AlreadyExists(e)