cachinglayer

This module defines functions that are mixed into remoteStorage.local when it is instantiated (currently one of indexeddb.js, localstorage.js, or inmemorystorage.js).

All remoteStorage.local implementations should therefore implement this.getNodes, this.setNodes, and this.forAllNodes.  The rest is blended in here to create a GPD (get/put/delete) interface which the BaseClient can talk to.

Summary
cachinglayerThis module defines functions that are mixed into remoteStorage.local when it is instantiated (currently one of indexeddb.js, localstorage.js, or inmemorystorage.js).
Functions
cachingLayerMixes common caching layer functionality into an object.

Functions

cachingLayer

RemoteStorage.cachingLayer = function (object)

Mixes common caching layer functionality into an object.

The first parameter is always the object to be extended.

Example

var MyConstructor = function () {
  cachingLayer(this);
};
RemoteStorage.cachingLayer = function (object)
Mixes common caching layer functionality into an object.
Close