{"library":"mysql-redis","type":"library","category":null,"description":"A caching layer between MySQL (mysql/mysql2) and Redis (redis/ioredis) that transparently caches SELECT query results in Redis to reduce database load. Stable version 0.7.2, last updated in 2018. It hashes queries using configurable algorithms (md5, farmhash32/64, blake2b512, or full query) and stores results in Redis with TTL. Zero mandatory external dependencies (farmhash is optional). Designed for read-heavy workloads with static or rarely updated data. Falls back to MySQL if Redis is unavailable. Not suitable for frequently updated data due to potential cache staleness.","language":"javascript","status":"active","version":"0.7.2","tags":["javascript","node","mysql2","mysql","ioredis","redis","cache","caching","layer"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install mysql-redis","imports":["const { MysqlRedis } = require('mysql-redis')","const { MysqlRedisAsync } = require('mysql-redis')","const { HashTypes } = require('mysql-redis')"]},{"cmd":"yarn add mysql-redis","imports":[]},{"cmd":"pnpm add mysql-redis","imports":[]}],"homepage":"https://github.com/kwalski/mysql-redis#readme","github":"https://github.com/kwalski/mysql-redis","docs":null,"changelog":null,"pypi":null,"npm":"mysql-redis","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}