.set()
Sets a new value to the value of the provided key.
set(key, value, encrypt)
Parameter
Default
Description
key
The target key
value
The value to set
encrypt
false
Whether or not to encrypt the value before setting it
Returns
Description
The updated data from the provided key's root
Also allows the use of dot notation:
And the possibility to encrypt the data to safely store it:
And even a way to delete an entry from the database (version 2.0.2 and above):
Last updated