redis-mock icon indicating copy to clipboard operation
redis-mock copied to clipboard

Node.js redis client mock

Results 30 redis-mock issues
Sort by recently updated
recently updated
newest added

Node Redis version 4 changed several interfaces, which makes this library unusable. for example : - createClient() doesn't automatically connect to server, additional method was added connect() - lRange instead...

Hi all, as in my title question, I'm not able to mock the client.*config* function. With jest, I face the error:`TypeError: client_events.config is not a function` I, obviously, use `redis-mock`,...

Not sure how easy this would be but it would be awesome to have full support for `ttl` ```js const mock = require("redis-mock"); const client = mock.createClient(); client.setex("someKey", 300, "someValue");...

The redis-mock library is missing the "options" property from the RedisClient. I'm using a library called cache-manager-redis-store that uses redis to manage a cache. On [this line](https://github.com/dabroek/node-cache-manager-redis-store/blob/master/index.js#L5), they access the...

We are using redis-mock for our dev environments. I was a bit unfamiliar with how the options worked for the set command and I came up with this: `redis.set(key, value,...

I'm happy to, when I have a bit of time, add support for `sunion` - but I just wanted to open an issue to reflect the fact that this is...

Fix #53 by adding support for scan, this is essentially the keys command but allows cursor indexing. Both tests: regular and actual redis, passed. It's probably not the most optimized...

https://redis.io/commands/scan

Thanks for a great library; it has been very helpful to us in testing. I'm working my way through checking all of our tests and code coverage, and one case...