AiursoftWeb / Kahla.App

Kahla is a cross-platform business messaging app.
https://www.kahla.app
MIT License
415 stars 85 forks source link

Consider using localForge to replace localStorage #936

Open Anduin2017 opened 3 years ago

Anduin2017 commented 3 years ago

https://github.com/localForage/localForage

Unified a standard interface for all places that need to access localstorage. So we only need to change the implementation and can easily change the provider of the cache service.

Or, add some additional features, such as automatic localstorage expiration. After I completely change, replacing our underlying storage service is a very simple matter.