stash-it-adapter-mongo
v0.0.2
Published
MongoDB adapter for stash-it
Downloads
1
Maintainers
Readme
stash-it-adapter-mongo
MongoDB adapter for stash-it.
It's build in ES6 so if you need to run it in an older environment, you will need to transpile it.
Installation
npm i stash-it-adapter-mongo --save
Usage
import { createCache } from 'stash-it';
import createMongoAdapter from 'stash-it-adapter-mongo';
const adapter = createMongoAdapter();
const cache = createCache(adapter);
And that's it. You are ready to go.
For available methods, check adapters API section (all adapters have the same API).