stash-it-adapter-mongo

0.0.2 • Public • Published

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

Package Sidebar

Install

npm i stash-it-adapter-mongo

Weekly Downloads

2

Version

0.0.2

License

MIT

Unpacked Size

3.84 kB

Total Files

4

Last publish

Collaborators

  • jaceks