Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let answer = redis_client.get('counter', (e, r) => {
- console.log(r);
- });
- console.log(answer);
- const client = Promise.promisifyAll(redis_client);
- async function doSOmething(){
- let r = await redis_client.getAsync('counter');
- console.log(r);
- console.log(answer);
- // много остального кода
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement