Commit 10a5b2b5 by 王昆

'setWithEx'

parent 3bfa2736
...@@ -13,7 +13,7 @@ class BMUserCache extends CacheBase { ...@@ -13,7 +13,7 @@ class BMUserCache extends CacheBase {
} }
async set(openid, value) { async set(openid, value) {
var key = this.globalKeyPrefix + "_" + openid; var key = this.globalKeyPrefix + "_" + openid;
this.redisClient.set(key, value); this.redisClient.setWithEx(key, value, 24 * 60 * 60);
return key; return key;
} }
async get(openid) { async get(openid) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment