Clear Up
SharpKit Reference

WebStorage Class

NOTE This is a private utility class for internal use by the framework. Don't rely on its existence.

WebStorageProxy is simply a superclass for the LocalStorage and SessionStorage proxies. It uses the new HTML5 key/value client-side storage objects to save model instances for offline use.


Base Interfaces



Name Description
cache Cached map of records already retrieved by this Proxy. Ensures that the same instance is always retrieved. Defaults to: {}


Name Description
id The unique ID used as the key in which all record data are stored in the local storage object.


Name Description
setRecord(Model, object) Saves the given record in the Proxy.
© Copyright 2005-2011 SharpKit. All rights reserved.