0.0.2 • Published 6 years ago

stash-it-adapter-mongo v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

logo-stash-it-color-dark 2x

stash-it-adapter-mongo

build status Coverage Status

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).