Redis Promisify
const redis = require('@wentazhi/redis');
const client = redis.createClient(options);
async function(key){
client.asyncSet(key, value, 1000);
const data = client.asyncGet(key);
}
const redis = require('@wentazhi/redis');
const client = redis.createClient(options);
async function(key){
client.asyncSet(key, value, 1000);
const data = client.asyncGet(key);
}
npm i @webtanzhi/redis
2
1.0.3
MIT
3.61 kB
5