RedMock is a mock Redis server for Node.js unit tests, allowing developers to test Redis-dependent code without stubbing the client library. Version 1.0.0 supports basic Redis commands, sentinel, and clustering. It requires Node >= 5.7.0. Unlike simple stubs, RedMock provides a real in-memory server that behaves like Redis, reducing the risk of integration bugs. The project is no longer actively maintained, and alternatives like ioredis-mock or redis-mock are recommended for newer projects.
npm install redmockNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows starting and stopping the mock Redis server using promises.
Check the source code for supported commands or use a more complete mock like ioredis-mock.
Consider using an actively maintained alternative such as ioredis-mock or redis-mock.
Always call .catch() on start() and ignore stop() rejection if unhandled.
Stop the existing Redis server or change the port via environment variable or start() options.
Use const RedisServer = require('redmock');Instantiate with 'new RedisServer()' before calling start().
No dependency data recorded yet.