|
@ -149,8 +149,8 @@ memoryCache.wrap(key, function (cb) { |
|
|
```javascript |
|
|
```javascript |
|
|
memoryCache.wrap(key, function() { |
|
|
memoryCache.wrap(key, function() { |
|
|
return getUserPromise(userId); |
|
|
return getUserPromise(userId); |
|
|
}); |
|
|
}) |
|
|
then(function(user) { |
|
|
.then(function(user) { |
|
|
console.log('User:', user); |
|
|
console.log('User:', user); |
|
|
}); |
|
|
}); |
|
|
``` |
|
|
``` |
|
|