Skip to main content

set

Function set 

Source
pub fn set(key: &str, value: &str) -> bool
Expand description

Persist value under key, overwriting any previous value. Returns true when the write was committed. On Apple platforms this always succeeds; on Android it reflects SharedPreferences.Editor.commit(); on the file-backed platforms it reflects whether the store file could be written (a missing config directory or a read-only home yields false).

Day API ↩ Guides· daybrite.dev