@db.non_transactional(allow_existing=True)<EOL><INDENT>def locked_put(self, credentials):<DEDENT>
entity = self._model.get_or_insert(self._key_name)<EOL>setattr(entity, self._property_name, credentials)<EOL>entity.put()<EOL>if self._cache:<EOL><INDENT>self._cache.set(self._key_name, credentials.to_json())<EOL><DEDENT>
Write a Credentials to the datastore.

        Args:
            credentials: Credentials, the credentials to store.