Have ideas to improve npm?Join in the discussion! »

This package has been deprecated

Author message:

You should upgrade to [email protected] and used the scoped MySQL adapter @keyv/mysql

keyv-mysql

1.0.2 • Public • Published

keyv-mysql keyv

MySQL/MariaDB storage adapter for Keyv

Build Status Coverage Status npm

MySQL/MariaDB storage adapter for Keyv.

Install

npm install --save keyv keyv-mysql

Usage

const Keyv = require('keyv');
 
const keyv = new Keyv('mysql://user:pass@localhost:3306/dbname');
keyv.on('error', handleConnectionError);

You can specify the table option.

e.g:

const keyv = new Keyv('mysql://user:pass@localhost:3306/dbname', { table: 'cache' });

License

MIT © Luke Childs

Install

npm i keyv-mysql

DownloadsWeekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • avatar