storage.mechanism.mechanismfactory

Classes


Public Protected Private

Global Functions

goog.storage.mechanism.mechanismfactory.create(opt_namespace) goog.storage.mechanism.IterableMechanism
Returns the best local storage mechanism, or null if unavailable. Local storage means that the database is placed on user's computer. The key-value database is normally shared between all the code paths that request it, so using an optional namespace is recommended. This provides separation and makes key collisions unlikely.
Arguments:
opt_namespace : string=
Restricts the visibility to given namespace.
Returns: goog.storage.mechanism.IterableMechanism  Created mechanism or null.
code »
goog.storage.mechanism.mechanismfactory.createHTML5LocalStorage(opt_namespace) goog.storage.mechanism.IterableMechanism
Returns an HTML5 local storage mechanism, or null if unavailable. Since the HTML5 local storage does not support namespaces natively, and the key-value database is shared between all the code paths that request it, it is recommended that an optional namespace is used to provide key separation employing a prefix.
Arguments:
opt_namespace : string=
Restricts the visibility to given namespace.
Returns: goog.storage.mechanism.IterableMechanism  Created mechanism or null.
code »
goog.storage.mechanism.mechanismfactory.createHTML5SessionStorage(opt_namespace) goog.storage.mechanism.IterableMechanism
Returns an HTML5 session storage mechanism, or null if unavailable. Since the HTML5 session storage does not support namespaces natively, and the key-value database is shared between all the code paths that request it, it is recommended that an optional namespace is used to provide key separation employing a prefix.
Arguments:
opt_namespace : string=
Restricts the visibility to given namespace.
Returns: goog.storage.mechanism.IterableMechanism  Created mechanism or null.
code »
goog.storage.mechanism.mechanismfactory.createIEUserData(opt_namespace) goog.storage.mechanism.IterableMechanism
Returns an IE userData local storage mechanism, or null if unavailable. Using an optional namespace is recommended to provide separation and avoid key collisions.
Arguments:
opt_namespace : string=
Restricts the visibility to given namespace.
Returns: goog.storage.mechanism.IterableMechanism  Created mechanism or null.
code »

Global Properties

goog.storage.mechanism.mechanismfactory.USER_DATA_SHARED_KEY :
The key to shared userData storage.
Code »

Package storage.mechanism

Package Reference