mysql-redis

JSON →
library 0.7.2 ·javascript
verified Jun 5, 2026

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.