Function
setString
(key: string, value: string)
Source from the content-addressed store, hash-verified
| 85 | } |
| 86 | |
| 87 | export function setString(key: string, value: string): void { |
| 88 | if (!verify(key)) { |
| 89 | return; |
| 90 | } |
| 91 | if (!common.ensureValidValue(value, 'string')) { |
| 92 | return; |
| 93 | } |
| 94 | const editor = sharedPreferences.edit(); |
| 95 | editor.putString(key, value); |
| 96 | editor.apply(); |
| 97 | } |
| 98 | |
| 99 | export function setNumber(key: string, value: number): void { |
| 100 | if (!verify(key)) { |
Callers
nothing calls this directly
Tested by
no test coverage detected