Commit 1df5a8a4 by 宋毅

th

parent 804536ef
...@@ -34,7 +34,6 @@ class CacheBase { ...@@ -34,7 +34,6 @@ class CacheBase {
this.redisClient.sadd(this.cacheCacheKeyPrefix, [cachekey + "|" + this.desc]); this.redisClient.sadd(this.cacheCacheKeyPrefix, [cachekey + "|" + this.desc]);
return JSON.parse(objvalstr); return JSON.parse(objvalstr);
} else { } else {
this.redisClient.setWithEx(cachekey, cacheValue, ex);
return JSON.parse(cacheValue); return JSON.parse(cacheValue);
} }
} }
......
...@@ -14,7 +14,7 @@ class VCodeCache extends CacheBase { ...@@ -14,7 +14,7 @@ class VCodeCache extends CacheBase {
return "缓存给手机发送的验证码60妙"; return "缓存给手机发送的验证码60妙";
} }
prefix() { prefix() {
return "g_vcode_" return "g_vcode:appkey_"
} }
async buildCacheVal(cachekey, inputkey, val, ex, ...items) { async buildCacheVal(cachekey, inputkey, val, ex, ...items) {
//inputkey采用appkey_mobile的形式 //inputkey采用appkey_mobile的形式
......
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