Описание тега google-chrome-storage
NoneChrome.storage is a more powerful chrome-only alternative to localStorage. It can store objects (not just strings) and can be synchronized with Chrome sync.
The chrome.storage API provides the same storage capabilities as the localStorage API with the following key differences:
- User data can be automatically synced with Chrome sync (using storage.sync).
- Your extension's content scripts can directly access user data without the need for a background page.
- A user's extension settings can be persisted even when using split incognito behavior.
- It's asynchronous with bulk read and write operations, and therefore faster than the blocking and serial localStorage API.
- User data can be stored as objects (the localStorage API stores data in strings).
- Enterprise policies configured by the administrator for the extension can be read (using storage.managed with a schema).