This is designed to be used with
node-consul and the watch command with
consul.kv.get this library turns each key change received into an node emitted event, and keeps track so duplicates are not sent.
If multiple key changes are received with single update, the cache library will trigger 2 separate change events.
npm install consul-kv-cache
var consul =var ConsulKVCache =var cache =consulcache