A redis mock for node
The mock redis client borrows methods from node-redis-mock which was originally cloned from redis-mock. There are a few more implementations, like mset, mget, etc.
This project isn't a clone of mock-redis-client or mock-redis, rather it uses encapulation to inherit methods implemented by the base object. It's a cleaner way of extending the original works from both projects.
npm install mock-redis-client --save-dev
var MockRedisClient = require('mock-redis-client'); var client = new MockRedisClient();
Or if you need to mock redis itself, then do this:
var redis = require('mock-redis-client').createMockRedis(); var client = redis.createClient();
Currently implemented are the following:
make test or make watch or grunt mochaTest jshint validate-package
Copyright © 2014-2016, rain city software | Version 0.91.13