def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def __init__(self):
        self._cache = {}
        self._bucket_client = None
        self._param_client = None
        self._secret_client = None