.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 |
| Boolean (optional) Whether or not to encrypt the value before setting it |
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