Skip to content

smolak/stash-it-adapter-mongo

Repository files navigation

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

About

MongoDB adapter for stash-it

Resources

License

Stars

Watchers

Forks

Packages

No packages published