node-redis-instance
v0.1.5
Published
nodejs远程连接redis
Downloads
12
Readme
node-redis-instance
Usage Example
const conf = { port: "6379", host: "127.0.0.1" };
const Redis = require('async-redis-instance').getInstance(conf.host,conf.port);
const client = Redis.client;
(async () => {
await client.set("key", "value");
const val = await client.get("key");
console.log(val);
})();