Storage.flush()
Flushes storage.data. It isn't neccessary to flush it after every change since it will be flushed on disconnect, but recommended.
Syntax
storage.flush();
Example
mp.storage.data.auth = { token: "abcd" };
mp.storage.flush();
Flushes storage.data. It isn't neccessary to flush it after every change since it will be flushed on disconnect, but recommended.
storage.flush();
mp.storage.data.auth = { token: "abcd" };
mp.storage.flush();