Sets the key to the given value.

        Returns:
            bool: ``True`` on success
502574
async def _write(self, path, data, *,
                     flags=None, cas=None, acquire=None, release=None):
        
        if not isinstance(data, bytes):
            raise ValueError("value must be bytes")
        path = "/v1/kv/%s" % path
        response = await self._api.put(
            path,
            params={
                "flags": flags,
                "cas": cas,
                "acquire": acquire,
                "release": release
            },
            data=data,
            headers={"Content-Type": "application/octet-stream"})
        return response
206296
def setitem(self, key, value):
        
        with self.lock:
            self.tbl[key] = value
1362172
def set(self, key, value):
        """"""
        if key in self.callbacks:
            self.callbacks[key](value)
        else:
            self.prefs[key] = value
846014
function set(key, value) {
    return strong.def(validate(this, MAP), key === 0 ? 0 : key, value);
  }
15501
def set_format_key_value(self, key, value):
        ''''''
        if self.format_keys is None:
            self.format_keys = []
            self.FORMAT = {}
        if key not in self.FORMAT:
            self.format_keys.append(key)
        self.FORMAT[key] = value
584046
def set(self, key, value):
        
        k = self._real_key(key.lower())
        self._override[k] = value
863420
def pop_bool(self, key: str, default: Any = DEFAULT) -> bool:
        
        value = self.pop(key, default)
        if value is None:
            return None
        elif isinstance(value, bool):
            return value
        elif value == "true":
            return True
        elif value == "false":
            return False
        else:
            raise ValueError("Cannot convert variable to bool: " + value)
732773
def set(self, key, val):
        
        data = self.get_data(True)
        if data is not None:
            data[key] = val
        else:
            raise RuntimeError("No task is currently running")
534930
def set_key(self, key):
        
        is_non_empty_string(key)

        self.policies.append(('eq', '$key', key))
        self.form_data['key'] = key
        self.key = key
972106
def set(self, key, value):
        

        changed = super().set(key=key, value=value)

        if not changed:
            return False

        self._log.info('Saving configuration to "%s"...', self._filename)

        with open(self._filename, 'w') as stream:
            stream.write(self.content)
            self._log.info('Saved configuration to "%s".', self._filename)

        return True
170404
def set(self, key: str, value: str, opt: dict = None) -> None:
        
        self[key] = value
        if opt is not None:
            self[key].update(opt)
380623
def setValue(self, key, value):
        
        LOG.debug("HMGeneric.setValue: address = '%s', key = '%s' value = '%s'" % (self._ADDRESS, key, value))
        try:
            self._proxy.setValue(self._ADDRESS, key, value)
            return True
        except Exception as err:
            LOG.error("HMGeneric.setValue: %s on %s Exception: %s", key,
                      self._ADDRESS, err)
            return False
845159
def store(self, key, value):
        
        self.client.set(key, value, time=self.timeout)
786232
def setOption(self, key, value):
    
    self.send_setOption(key, value)
    self.recv_setOption()
188294
def add(self, key, value=None):
        
        if value is None:
            value = 2 ** (len(self))

        self[key] = value
        setattr(self, key, self[key])
        return value
1242935
def set_config(self, key, value):
        ''''''
        self.config = self.read_file()
        self.config[key] = value
        self.write_file()
138371
def set_param(self, key, value):
        
        self.__dict__[key] = value
        self._parameters[key] = value