The key under which the value will be stored.
Optionalvalue: stringThe value to be stored. If not provided, an empty string will be stored.
Optionaloptions: { expiration: Date }Optional settings for the storage.
The expiration date for the stored value. If provided, an additional key with the expiration date will be stored.
Stores a value in the local storage with an optional expiration date.