goog.storage.mechanism.Mechanism | |
goog.storage.mechanism.IterableMechanism | goog.storage.mechanism.Mechanism |
goog.storage.mechanism.HTML5WebStorage | goog.storage.mechanism.IterableMechanism |
goog.storage.mechanism.HTML5MockStorage | goog.storage.mechanism.HTML5WebStorage |
goog.storage.mechanism.HTML5SessionStorage | goog.storage.mechanism.HTML5WebStorage |
goog.storage.mechanism.HTML5LocalStorage | goog.storage.mechanism.HTML5WebStorage |
storage
: Storage
The Web storage object.
|
![]()
No description.
|
code » | |
![]()
No description.
|
code » | |
![]()
No description.
|
code » | |
![]()
No description.
|
code » | |
Determines whether or not the mechanism is available.
It works only if the provided web storage object exists and is enabled.
Returns: boolean
True if the mechanism is available.
|
code » | |
Gets the key for a given key index. If an index outside of
[0..this.getCount()) is specified, this function returns null.
|
code » | |
![]()
No description.
|
code » | |
![]()
No description.
|
code » |
Returns an iterator that iterates over the elements in the storage. Will
throw goog.iter.StopIteration after the last element.
Arguments:
Returns: !goog.iter.Iterator
The iterator.
|
code » | ||
![]()
Remove all key-value pairs.
Could be overridden in a subclass, as the default implementation is not very
efficient - it iterates over all keys.
|
code » | ||
Get the number of stored key-value pairs.
Could be overridden in a subclass, as the default implementation is not very
efficient - it iterates over all keys.
Returns: number
Number of stored elements.
|
code » |
![]()
No description.
|
Code » |
![]()
The key used to check if the storage instance is available.
|
Code » | |
![]()
No description.
|
Code » |