Yet another in-memory alternative for ioredis. Goal of this lib is to provide full API compatibilty with ioredis. Which can be used to write unit tests or while developing applications.
const RedisInMemory = require('ioredis-in-memory');
const redis = new RedisInMemory({
data: {
key: 'value'
.
.
.
}
});
// Use it like ioredis
- Basic commands support
- Unit tests for all commands
- Publish compatibility table
- Pipeline support
This is rewrite of ioredis-mock, hence borrows most of the code from it.
Copyright (c) Nilesh Mali. All rights reserved.
Licensed under the MIT License.