mockis

A mock of redis

Mockis

A self indulgent coffeescript mock of redis.

It works for certain things. It should match the success behavior of the node_redis library. Failure behavior may not match, but we try to do something sane.

It's also very incomplete. I've implemented the basic things I need. I will try to add other things as well, but if it's missing things you need, send a PR.

Currently there is no way to have two instances of Mockis pointing at the same storage, but this shouldn't be two difficult to change.

Also it doesn't support all caps commands. This is easy to fix, BUT WHY?

  • set
  • get
  • del
  • sadd
  • smembers
  • srem
  • zadd
  • zrange
  • zremrangebyscore
  • hset
  • hget
  • hgetall
  • hmset
  • flushall
  • multi
  • exec
  • discard

Contributions are totes welcome. When possible, please submit a PR for each command. This isn't a requirement, but it can streamline reviewing them.

Please create at least the most basic of tests for any command you add. Also, test only pull requests are greatly appreciated.

Apache 2.0

  • Pat Shields (Adzerk)