Associates the given data with the given key.
- tvOS 9.0+
- Safari Desktop 4.0+
- Safari Mobile 3.0+
- TVMLKit JS
Stringobject containing the key associated with the data to be saved.
Stringobject containing the data to be stored.
set function first checks whether the given key already exists in the storage. If it does not, then the key and associated value are stored. If the key already exists and the data in storage is different than the data being passed, the new data is saved to storage.