storage.Storage Extends
The base implementation for all storage APIs.

Inheritance

Constructor

goog.storage.Storage(mechanism)

Parameters

mechanism : !goog.storage.mechanism.Mechanism
The underlying storage mechanism.

Instance Methods

Public Protected Private
get(key) *
Gets an item from the data storage.
Arguments:
key : string
The key to get.
Returns: *  Deserialized value or undefined if not found.
code »
remove(key)
Removes an item from the data storage.
Arguments:
key : string
The key to remove.
code »
set(keyvalue)
Sets an item in the data storage.
Arguments:
key : string
The key to set.
value : *
The value to serialize to a string and save.
code »

Instance Properties

The mechanism used to persist key-value pairs.
Code »

Package storage

Package Reference