Hierarchy
- IStorage
Methods
deleteItem
-
Delete data by key on the server.
The method does not return an error if the item with the specified key is missing.
await Application.storage.deleteItem('key');
Parameters
-
key: string
Returns Promise<void>
-
getItem
-
Get data from the server using a key.
Parameters
-
key: string
Returns Promise<string | null>
-
setItem
-
Save data to the server using a key.
The size of the value is limited: it must not exceed 16 megabytes.
await Application.storage.setItem('key', JSON.stringify({ 'some_key' : 'some_data', 'arr' : [ 1, 2, 3 ] })); // Further in the code, when data is requested let value = JSON.parse(await Application.storage.getItem('key'));
Parameters
-
key: string
-
value: string
Returns Promise<void>
-
Was this helpful?
Permanent storage used to store any string data on the server
The storage period for data in the system's database is unlimited.