mock-redis-client
JSON →A Redis mock for Node.js development, providing in-memory simulation of Redis commands (strings, hashes, lists, pub/sub, transactions, keys, server) without a real Redis server. Current stable version 0.91.13, low release cadence (last update 2016). Designed for unit testing Node.js applications that use the redis npm package. Supports CommonJS require, no TypeScript definitions, no ESM support. Key differentiator: can create a mock redis module that mimics the real redis.createClient API, allowing drop-in replacement. Limited command coverage compared to alternatives like ioredis-mock, and no longer actively maintained.
Resources
packagemock-redis-client ↗
API endpoints
full doc /v1/registry/mock-redis-client