Sets a setting, where the key parameter is a identifier for the setting and the value parameter will be the new value for the setting.