parameters: (self, credentials)
docstring: Write a Credentials to the datastore.
  
      Args:
        credentials: Credentials, the credentials to store.
docstring_summary: Write a Credentials to the datastore.
docstring_tokens: Write a Credentials to the datastore .
function: def locked_put(self, credentials):
      """Write a Credentials to the datastore.
  
      Args:
        credentials: Credentials, the credentials to store.
      """
      entity = self._model.get_or_insert(self._key_name)
      setattr(entity, self._property_name, credentials)
      entity.put()
      if self._cache:
        self._cache.set(self._key_name, credentials.to_json())
function_tokens: def locked_put ( self , credentials ) : entity = self . _model . get_or_insert ( self . _key_name ) setattr ( entity , self . _property_name , credentials ) entity . put ( ) if self . _cache : self . _cache . set ( self . _key_name , credentials . to_json ( ) )