Skip to content

Everyplay/backbone-db-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Caching support for backbone-db

Resources

Stars

Watchers

Forks

Packages

No packages published