Commit 113e197f by 宋毅

tj

parent 0cea99cb
......@@ -17,8 +17,9 @@ class CacheBase {
prefix() {
throw new Error("子类需要定义prefix方法,返回本缓存的前缀");
}
async cache(inputkey, val, ex, ...items) {
async cache(inputkey, val, ex, ...items) {
const cachekey = this.prefix + inputkey;
console.log(cachekey,"cachekey.............basecache");
var cacheValue = await this.redisClient.get(cachekey);
if (!cacheValue || cacheValue == "undefined" || cacheValue == "null" || this.isdebug) {
var objvalstr = await this.buildCacheVal(cachekey, inputkey, val, ex, ...items);
......
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