This package has been deprecated

Author message:

You should upgrade to keyv@2 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

Package Sidebar

Install

npm i keyv-mysql

Weekly Downloads

27

Version

1.0.2

License

MIT

Last publish

Collaborators

  • lukechilds