Removes all items from storage.
Gets one or more items from storage.
Optionalkeys: string | string[] | { [key: string]: any }
A single key to get, list of keys to get, or a dictionary specifying default values (see description of the object). An empty list or object will return an empty result object. Pass in null to get the entire contents of storage.
OptionalgetGets the amount of space (in bytes) being used by one or more items.
Optionalkeys: string | string[]
A single key or list of keys to get the total usage for. An empty list will return 0. Pass in null to get the total usage of all of storage.
Removes one or more items from storage.
A single key or a list of keys for items to remove.
Sets multiple items.
An object which gives each key/value pair to update storage with. Any other key/value pairs in storage will not be affected.
Primitive values such as numbers will serialize as expected. Values with a typeof "object" and "function" will typically serialize to {}, with the exception of Array (serializes as expected), Date, and Regex (serialize using their String representation).
Fired when one or more items change.