1.0.2 • Published 7 years ago

keyv-mysql v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

keyv-mysql

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