A cache transport for requestify that uses PouchDb
Currently, only works in node.
npm install requestify-pouchdb
Require the module and pass it to therequestify.cacheTransporter
method.
var requestify = require('requestify');
requestify.cacheTransporter(require('requestify-pouchdb')());
Currently, the only option for configuration is to set the path where PouchDb will write to.
var cache_dir = './cache';
var PouchdbCacheTransporter = require('requestify-pouchdb');
var cacheTransporter = new PouchdbCacheTransporter(cache_dir);
OR
var cacheTransporter = require('requestify-pouchdb)();
npm test