backbone-db-cache
v0.1.2
Published
Caching support for backbone-db
Downloads
2
Readme
backbone-db-cache
Provides sync wrapper for caching & LRU cache.
Example:
var Db = require('backbone-db');
var CacheDb = require('backbone-db-cache');
var testModelCache = new CacheDb('testmodel-cache');
var TestModel = Model.extend({
...
type: 'footype',
sync: CacheDb.cachingSync(Db.sync, testModelCache)
});