Skip to content
This repository has been archived by the owner on Nov 22, 2018. It is now read-only.

nileshmali/ioredis-in-memory

Repository files navigation

ioredis-in-memory

Greenkeeper badge

dependencies Status devDependencies Status Code Climate Test Coverage Issue Count npm npm Travis

NPM NPM

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.

Usage

const RedisInMemory = require('ioredis-in-memory');
const redis = new RedisInMemory({
  data: {    
    key: 'value'
    .
    .
    .
  }
});
// Use it like ioredis

Roadmap

  • Basic commands support
  • Unit tests for all commands
  • Publish compatibility table
  • Pipeline support

Credits

This is rewrite of ioredis-mock, hence borrows most of the code from it.

License

Copyright (c) Nilesh Mali. All rights reserved.

Licensed under the MIT License.