+
![PouchDB logo](https://upload.wikimedia.org/wikipedia/commons/c/c6/PouchDB_logo.png)
keyv-pouchdb
Third party PouchDB storage adapter for Keyv.
![npm](https://img.shields.io/npm/v/keyv-pouchdb.svg)
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",
remoteConfig: {}
}
});
new KeyvPouchDB("http://localhost:3000/keyv-pouchdb-cache");
new KeyvPouchDB("database.db");
const keyv = new Keyv({ store });
License
MIT © wmik