Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 618 Bytes

storage.md

File metadata and controls

38 lines (26 loc) · 618 Bytes

storage

The storage class to store data in secure storage with encryption.

read

Read value as string

  • first parameter is key as String
await storage.read('samplekey');

write

Write value as string by a key

  • first parameter is key as String
  • second parameter is value as String
await storage.write('samplekey', 'my value here like a token');

delete

Delete a key

  • first parameter is key as String
await storage.delete('samplekey');

truncate

Erase storage of your application

await storage.truncate();