couch2redis

A listener that listens to couch db events and updates a redis key associated with a sortedset

Usage no npm install needed!

<script type="module">
  import couch2redis from 'https://cdn.skypack.dev/couch2redis';
</script>

README

Rediswalker


Overview:

What the structure should look like:

    redisKey: { 
         obj1: unix_epoch_timestamp,
         obj2: unix_epoch_timestamp,
         ...
         objn: unix_epoch_timestamp
    }

The redisKey in this key should be associated with a redis sorted set.

How to use it:

  1. Create a new instance of this walker with the appropriate params
var walker = new Walker(couchUrl, sortedSetKey); 

  1. Daemonize the process, so it runs forever in the background
  2. Done!