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.
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.