This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

keyv-mongo-native
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

keyv-mongo-native keyv

MongoDB Native storage adapter for Keyv

Build Status Coverage Status Dependencies Status semantic-release

Buy me a coffee

MongoDB Native storage adapter for Keyv. This adapter uses the native MongoDB Node.js Driver instead of any third-party library.

Uses TTL indexes to automatically remove expired documents. However MongoDB doesn't guarantee data will be deleted immediately upon expiration, so expiry dates are revalidated in Keyv.

Install

npm install --save keyv keyv-mongo-native

Usage

const Keyv = require('keyv');

const keyv = new Keyv({ store: new KeyvMongoNative('mongodb://user:pass@localhost:27017/dbname') });
keyv.on('error', handleConnectionError);

License

MIT © RatserX

Package Sidebar

Install

npm i keyv-mongo-native

Weekly Downloads

3

Version

1.1.1

License

MIT

Unpacked Size

14.2 kB

Total Files

7

Last publish

Collaborators

  • ratser