JSPM

stash-it-adapter-mongo

0.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q14082F
  • License MIT

MongoDB adapter for stash-it

Package Exports

  • stash-it-adapter-mongo

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (stash-it-adapter-mongo) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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