
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
@keyvhq/mysql
Advanced tools
MySQL/MariaDB storage adapter for Keyv.
npm install --save @keyvhq/core @keyvhq/mysql
const KeyvMysql = require('@keyvhq/redis')
const Keyv = require('@keyvhq/core')
const keyv = new Keyv({
store: new KeyvMysql('mysql://user:pass@localhost:3306/dbname')
})
You can specify a custom table with the table
option and the primary key size with keySize
:
const KeyvMysql = require('@keyvhq/redis')
const Keyv = require('@keyvhq/core')
const keyv = new Keyv({
store: new KeyvMysql('mysql://user:pass@localhost:3306/dbname', {
table: 'cache',
keySize: 255
})
})
Note: Some MySQL/MariaDB installations won't allow a key size longer than 767 bytes. If you get an error on table creation try reducing keySize
to 191 or lower.
@keyvhq/mysql © Luke Childs, released under the MIT License.
Maintained by Microlink with help from contributors.
microlink.io · GitHub microlinkhq · X @microlinkhq
2.1.7 (2025-02-20)
Note: Version bump only for package @keyvhq/monorepo
FAQs
MySQL/MariaDB storage adapter for Keyv
The npm package @keyvhq/mysql receives a total of 263 weekly downloads. As such, @keyvhq/mysql popularity was classified as not popular.
We found that @keyvhq/mysql demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.