{"library":"redis-mock","type":"library","category":null,"description":"Redis client mock object for unit testing. Current stable version is 0.56.3. It provides an in-memory mock of node_redis, allowing developers to test Redis-dependent code without an actual Redis server. Actively maintained but only 46% mock coverage (222/482 commands). Key differentiators: designed as a drop-in replacement for node_redis, supports common operations like strings, hashes, lists, sets, sorted sets, pub/sub, and transactions. However, it lacks complete command coverage and may not support all edge cases.","language":"javascript","status":"maintenance","version":"0.56.3","tags":["javascript","redis","redis-mock","mock-redis","redis test","redis mock","redis testing","redis fake","redis-js"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install redis-mock","imports":["import redis from 'redis-mock';","const client = redis.createClient();","const { promisify } = require('util'); const getAsync = promisify(client.get).bind(client);"]},{"cmd":"yarn add redis-mock","imports":[]},{"cmd":"pnpm add redis-mock","imports":[]}],"homepage":"https://github.com/yeahoffline/redis-mock#readme","github":"https://github.com/yeahoffline/redis-mock","docs":null,"changelog":null,"pypi":null,"npm":"redis-mock","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}