Methods
The local object implements the methods defined on the storage.StorageArea type:
storage.local.get()-
Retrieves one or more items from the storage area.
storage.local.getBytesInUse()-
Gets the amount of storage space (in bytes) used for one or more items in the storage area.
storage.local.getKeys()-
Retrieves the keys of all items in the storage area.
storage.local.set()-
Stores one or more items in the storage area. If the item exists, its value is updated.
storage.local.remove()-
Removes one or more items from the storage area.
storage.local.clear()-
Removes all items from the storage area.
Events
The local object implements the events defined on the storage.StorageArea type:
storage.local.onChanged-
Fires when one or more items in the storage area change.
Example extensions
Browser compatibility
Note:
This API is based on Chromium's chrome.storage API. This documentation is derived from storage.json in the Chromium code.