You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-10 11:43:01 +03:00
comment with reference out of code block
This commit is contained in:
@@ -70,8 +70,10 @@ now *getAsync* is a promisified version of *client.get*:
|
|||||||
return getAsync('foo').then(function(res) {
|
return getAsync('foo').then(function(res) {
|
||||||
console.log(res); // => 'bar'
|
console.log(res); // => 'bar'
|
||||||
});
|
});
|
||||||
|
```
|
||||||
|
|
||||||
// or using [async await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function)
|
or using [async await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function):
|
||||||
|
```js
|
||||||
async myFunc() {
|
async myFunc() {
|
||||||
const res = await getAsync('foo');
|
const res = await getAsync('foo');
|
||||||
console.log(res);
|
console.log(res);
|
||||||
|
Reference in New Issue
Block a user