+
![PouchDB logo](https://upload.wikimedia.org/wikipedia/commons/c/c6/PouchDB_logo.png)
keyv-pouchdb
Third party PouchDB storage adapter for Keyv.
![Build Status](https://travis-ci.com/wmik/keyv-pouchdb.svg?branch=master)
Motivation
Leveraging pouchdb-lru-cache as a keyv-storage-adapter that complies with the api specs.
Installation
$ npm install --save keyv-pouchdb
$ npm install pouchdb-adapter-memory --save
$ npm install pouchdb-adapter-http --save
$ npm install pouchdb-adapter-node-websql --save
Usage
const KeyvPouchDB = require("keyv-pouchdb");
const Keyv = require("keyv");
const store = new KeyvPouchDB({
maxCacheSize: 5000000,
overwriteExisting: false,
pouchDB: {
adapter: "memory",
database: "keyv-pouchdb-cache",
plugins: []
}
});
new Keyv("http://localhost:3000/keyv-pouchdb-cache");
new Keyv("database.db");
const keyv = new Keyv({ store });
License
MIT © wmik