@yuanchuan/redis-commands

Redis commands implemented in javascript (learning purpose only)

Usage no npm install needed!

<script type="module">
  import yuanchuanRedisCommands from 'https://cdn.skypack.dev/@yuanchuan/redis-commands';
</script>

README

Redis-commands

Redis commands implemented in JavaScript.

** NOTICE ** This is just an experimental project for fun and learning. I don't expect it to be useful anyway.

Installation

$ npm install @yuanchuan/redis-commands

Example


var Redis = require('@yuanchuan/redis-commands');
var R = new Redis();

R.set('mykey', 'hello');
R.get('mykey');

TODO

  • Sorted-sets
  • More tests
  • Optimize
  • Migrate to browser

License

MIT