We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb0a002 commit e7bad5aCopy full SHA for e7bad5a
1 file changed
proxy/user.js
@@ -66,7 +66,8 @@ exports.getUserById = function (id, isCache, callback) {
66
67
ep.on('user', function (user) {
68
if (user) {
69
- cache.set(String(user._id), user);
+ // 缓存用户信息五分钟
70
+ cache.set(String(user._id), 5 * 60 * 1000, user);
71
}
72
callback(null, user);
73
});
0 commit comments