set
Preference
Method to store and set a preference
Parameters
key
: the key of the preference
value
: the value of the preference