...
|
...
|
@@ -40,7 +40,7 @@ module.exports = class memoryCache { |
|
|
return;
|
|
|
}
|
|
|
|
|
|
return info.value;
|
|
|
return _.cloneDeep(info.value);
|
|
|
}
|
|
|
|
|
|
// 设置缓存数据
|
...
|
...
|
@@ -49,7 +49,7 @@ module.exports = class memoryCache { |
|
|
|
|
|
this.map.push(key);
|
|
|
this.cache[key] = {
|
|
|
value,
|
|
|
value: _.cloneDeep(value),
|
|
|
exptime: exptime ? (exptime + this._getNowTime()) : 0 // 过期时间
|
|
|
};
|
|
|
|
...
|
...
|
|