Tails the oplog and emits operations. Formerly mydb-slave.
require('tail')({
mongo: 'localhost:27017/local',
redis: 'localhost:6379',
ns: 'cloudup-development.*'
});
Options are:
mongo
mongo uri or instance pointing to thelocal
database to tailredis
redis uri or instancens
optionally, namespace to filter by (eg:cloudup.*
)query
query to tail from