The goog.storage.Storage Class

goog.storage.Storage(mechanism)

The base implementation for all storage APIs.

mechanism {!goog.storage.mechanism.Mechanism}
The underlying storage mechanism.

.get(key)

Get an item from the data storage.

key {string}
The key to get.
returns {*}
Deserialized value or undefined if not found.

.remove(key)

Remove an item from the data storage.

key {string}
The key to remove.

.set(key, value)

Set an item in the data storage.

key {string}
The key to set.
value {*}
The value to serialize to a string and save.