1.3.0 • Published 4 years ago

nodejs-redistool v1.3.0

Weekly downloads
2
License
UNLICENSED
Repository
github
Last release
4 years ago

nodejs-redistool

modejs redis tool

Install

> npm install nodejs-redistool --save-dev

Usage

app.js

// app.js
const { init, mq } = require('nodejs-redistool');
const topic = "mq:key";
// config redis mq
init({
    host: "127.0.0.1",
    password: "pass",
    port: 6379,
    db: 2
});
// sub message
mq.sub(topic, (msg) => {
    // handle msg
}, "*/2 * * * * *");
// pub message
mq.pub(topic, ...msgs);
1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago