richstorage.js
No description.

File Location

/goog/storage/richstorage.js

Classes

goog.storage.RichStorage
Provides a storage for data with attached metadata.
goog.storage.RichStorage.Wrapper
Wraps a value so metadata can be associated with it. You probably want to use goog.storage.RichStorage.Wrapper.wrapIfNecessary to avoid multiple embeddings.

Public Protected Private

Global Functions

goog.storage.RichStorage.Wrapper.unwrap(wrapper) *
Unwraps a value, any metadata is discarded (not returned). You might want to use goog.storage.RichStorage.Wrapper.unwrapIfPossible to handle cases where the wrapper is missing.
Arguments:
wrapper : !Object
The wrapper.
Returns: *  The wrapped value.
code »
goog.storage.RichStorage.Wrapper.unwrapIfPossible(wrapper) *
Convenience method for unwrapping a value. Returns undefined if the wrapper is missing.
Arguments:
wrapper : (!Object | undefined)
The wrapper.
Returns: *  The wrapped value or undefined.
code »
goog.storage.RichStorage.Wrapper.wrapIfNecessary(value) ⇒ (!goog.storage.RichStorage.Wrapper | undefined)
Convenience method for wrapping a value so metadata can be associated with it. No-op if the value is already wrapped or is undefined.
Arguments:
value : *
The value to wrap.
Returns: (!goog.storage.RichStorage.Wrapper | undefined)  The wrapper.
code »

Directory storage

File Reference