The goog.storage.mechanism.Mechanism Class

goog.storage.mechanism.Mechanism()

Basic interface for all storage mechanisms.

.get(key)

Get the value stored under a key.

key {string}
The key to get.
returns {?string}
The corresponding value, null if not found.

.remove(key)

Remove a key and its value.

key {string}
The key to remove.

.set(key, value)

Set a value for a key.

key {string}
The key to set.
value {string}
The string to save.