backbone-db-cache

0.1.2 • Public • Published

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)
});

Package Sidebar

Install

npm i backbone-db-cache

Weekly Downloads

0

Version

0.1.2

License

MIT

Last publish

Collaborators

  • mikkolehtinen
  • nomon